UPDATE: This page has a better tutorial which I have adapted in this post.
From this page [osxfaq.com]:
From this page [osxfaq.com]:
- Startup commands are found under
/Library/StartupItems/
- Each application has its own folder
- The folder has:
XXX - A startup shell script
StartupParameters.plist - A message and information file
Resources - A folder with translations for strings etc.
- XXX is a shell script with root ownership e.g.:
#!/bin/sh
. /etc/rc.common
ConsoleMessage "Starting RRiki"
cd /path/to/rriki/
rrikiserver &
- StartupParameters.plist is a text file with some info:
{
Description = "RRiki server";
Provides = ("RRiki");
Requires = ("MySQL");
Uses = ("Ruby");
OrderPreference = "Last"; (can be Late,Last,None)
Messages =
{
start = "Starting RRiki server";
stop = "Stopping RRiki server";
};
}
sudo /sbin/service
is the commandline way of manipulating services.
hi. Do startupitems still work in OS X 10.5.7?
ReplyDeleteI am having trouble in OS X 10.5.7 and can't seem to get one to actually work.