* Detecting running deamons
@ 2003-03-28 17:08 Luciano Moreira - igLnx
2003-03-28 19:18 ` J.
0 siblings, 1 reply; 2+ messages in thread
From: Luciano Moreira - igLnx @ 2003-03-28 17:08 UTC (permalink / raw)
To: linux-gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Detecting running deamons
2003-03-28 17:08 Detecting running deamons Luciano Moreira - igLnx
@ 2003-03-28 19:18 ` J.
0 siblings, 0 replies; 2+ messages in thread
From: J. @ 2003-03-28 19:18 UTC (permalink / raw)
To: linux-gcc
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-28 19:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-28 17:08 Detecting running deamons Luciano Moreira - igLnx
2003-03-28 19:18 ` J.
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).