Re: Question on using launchd from a C program
Re: Question on using launchd from a C program
- Subject: Re: Question on using launchd from a C program
- From: Andrew White <email@hidden>
- Date: Sat, 10 Jun 2006 11:19:21 +1000
Mike Kobb wrote:
Thanks for that! Pretty interesting.
As it happens, since I really didn't want to introduce big Mac
dependencies into the server code, I ended up writing a tiny little
faceless background "helper" app that launches the server when it starts
and quits it when it exits. Because it's a MacOS app and not a BSD
daemon-type process like the server, I can add it to the Login Items,
and that works beautifully for me. The helper reads a preference set by
my prefs pane so it knows whether to launch the server when it starts or
let the user do it manually...
As a stupid question, have you handled two unusual cases:
(1) There are multiple users logged in?
(2) What happens when a user logs in via ssh, independent of the normal
display? The two possible problem cases here are logging in when no-one is
logged in and having the display user log out while someone is still logged
in via ssh.
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden