Re: StartupItems
Re: StartupItems
- Subject: Re: StartupItems
- From: Peter Bierman <email@hidden>
- Date: Fri, 2 Jun 2006 11:30:34 -0700
At 12:16 PM -0500 6/2/06, Peter Seebach wrote:
Is this something one could do with trivial wrappers, at least? An ordering
wrapper that allowed an admin to avoid touching a third-party program would
be awfully cool.
Absolutely. For about the same amount of effort it takes to wrap a
generic UNIX daemon into a Mac OS X specific StartupItem, or a linux
specific rc.d script, you could create a launchd wrapper that:
* touches a file in /var/run to declare that it has started (provides)
* launches on demand when some file in /var/run appears (requires)
Ta-da, now you have 90% of what StartupItems do. The other 10% is
just more of the same, but for shutdown, etc...
-pmb
_______________________________________________
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