• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: StartupItems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: StartupItems (From: email@hidden (Peter Seebach))

  • Prev by Date: Re: StartupItems
  • Next by Date: Re: StartupItems
  • Previous by thread: Re: StartupItems
  • Next by thread: Re: StartupItems
  • Index(es):
    • Date
    • Thread