linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Andrés Roldán" <aroldan@fluidsignal.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: Detecting deamons running
Date: Fri, 28 Mar 2003 14:45:03 -0500	[thread overview]
Message-ID: <7disu3cm2o.fsf@cerberus.central.fluidsignal.com> (raw)
In-Reply-To: <00b701c2f54e$4a57afb0$0b00a8c0@SPLUCIANO> ("Luciano Moreira - igLnx"'s message of "Fri, 28 Mar 2003 14:20:08 -0300")

$ pidof process

will return the PID or the PIDs of the specified process. If it returns
nothing, there is not such a process running.

Cheers

"Luciano Moreira - igLnx" <lucianolnx@ig.com.br> writes:

> I have a application that run like a deamon, which write in a file its PID,
> that is used to stop it later by others programs. But, I ve noted that my
> users send signal 9 to stop deamons, and my application cannot remove its
> PID file, because it cannot handle singal 9, keeping its PID file at HD
> (FileSystem).
>
> Can someone sugest me a way to know the deamon's PID, without write it to a
> file ?
> OR
> How can I do to know if my deamon is running and get its PID ?
>
> Thanks,
>
> Luciano
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Andres Roldan, CSO
Fluidsignal Group

  reply	other threads:[~2003-03-28 19:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 17:20 Detecting deamons running Luciano Moreira - igLnx
2003-03-28 19:45 ` Andrés Roldán [this message]
2003-03-28 21:30   ` Glynn Clements
2003-03-28 23:40     ` Luciano Moreira - igLnx
2003-03-29  0:45       ` Glynn Clements
2003-03-29 16:51         ` Luciano Moreira - igLnx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7disu3cm2o.fsf@cerberus.central.fluidsignal.com \
    --to=aroldan@fluidsignal.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).