Re: Start & Stop demon
Re: Start & Stop demon
- Subject: Re: Start & Stop demon
- From: Finlay Dobbie <email@hidden>
- Date: Tue, 12 Jun 2001 07:39:58 +0100
Some daemons keep their PID in /var/run, you might like to look there.
Otherwise it's a case of looping through the ps output (or using some
other c api for getting process information) and finding your daemon
from that.
-- Finlay
On Monday, June 11, 2001, at 09:11 pm, Guy Winslow wrote:
Sari i was on a different Machine when i sent first time. Is there a
class or a way to start & stop a demon from within Cocoa. Open to
suggestions, tried calling the ps command and kill, but must get pid
some how. may be truck i am not thinking of.