Re: Start and stop a privileged service programmatically
Re: Start and stop a privileged service programmatically
- Subject: Re: Start and stop a privileged service programmatically
- From: Dave Zarzycki <email@hidden>
- Date: Mon, 10 Jul 2006 10:48:22 -0700
On Jul 10, 2006, at 10:46 AM, Graham J Lee wrote:
On 10/7/06 18:16, Dave Zarzycki wrote:
On Jul 8, 2006, at 12:45 PM, Nicola Vitacolonna wrote:
2) Is launchd to be preferred over other methods in this case? And
is it the way to go in general?
The preferred solution does not involve launchctl or programmatic
control whatsoever.
In Apple's idealized view of the universe, your VPN daemon would be
launch on demand via some IPC based mechanism. This has the nice
side effect of implicit correctness. From your client's
perspective, the daemon is virtually running all the time.
Purely a mental exercise at the moment, but in the Apple universe
what's the approach for daemons which service IPC but also have a
long startup time? For instance, say I create a leegsql server
which, on a typical box, spends "a while" checking and precaching
the tables when it loads up. This while is long enough that users
would notice if it were started and stopped on demand. Would the
"expected" approach be to launch the whole thing at startup, or to
launch the sqld at startup and have on-demand service daemons
transiently created when network, ODBC, JDBC etc requests appear?
Simply to set the OnDemand key to false in the job's plist.
Cheers,
davez
_______________________________________________
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