[launchd-dev] Obtaining information about a process from launchd

Chris Stevens cjs980 at uow.edu.au
Wed Jul 30 21:09:08 PDT 2008


Hi all,

Sorry for the somewhat basic question, I am writing a server in python that
I have registered with launchd. I am using a preference pane to control the
service (using "launchctl start/stop"), but I would like the preference pane
to know if the service is actually running. Because it is a python script,
the process shows up just as 'Python', so tracking the process using
NSWorkspace launchedApplications (actually I just read this may not work
anyway) would not work if the user happens to be using other python scripts.


Is there a way to get the status of my process from launchd? Since launchd
is controlling the whole show, I thought there must be some method to find
out if my python script is actually running, stopped, dead, whatever.

Thankyou!
Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-dev/attachments/20080731/8ce66ccb/attachment.html 


More information about the launchd-dev mailing list