From: "J." <mailing-lists@xs4all.nl>
To: linux-gcc@vger.kernel.org
Subject: Re: Detecting running deamons
Date: Fri, 28 Mar 2003 20:18:37 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.21.0303282017530.12680-100000@hestia> (raw)
In-Reply-To: <007801c2f54c$a5becde0$0b00a8c0@SPLUCIANO>
On Fri, 28 Mar 2003, Luciano Moreira - igLnx wrote:
> 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 ?
>
On the command-line:
pidof `which program_name`
or:
ps aux | grep program_name
or perhaps interactive?:
top
> Thanks,
No problemo
> Luciano
J.
prev parent reply other threads:[~2003-03-28 19:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 17:08 Detecting running deamons Luciano Moreira - igLnx
2003-03-28 19:18 ` J. [this message]
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=Pine.LNX.4.21.0303282017530.12680-100000@hestia \
--to=mailing-lists@xs4all.nl \
--cc=linux-gcc@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).