I once thought that the location for the start up scripts should be in
/System/Library/LaunchDaemons which I had read in other webpages I had found at the time. Never questioning what I had found as I didn’t know any better and it all worked.
Until last week a comment added to the Apache startup script page by Anonymouse started to get me thinking, where my assumptions correct. The upgrade to Mountain Lion and the disappearance of all my startup scripts from
/System/Library/LaunchDaemons pushed me over. After doing some research I hound the following overview of where which scripts should be:
~/Library/LaunchAgents Per-user agents provided by the user. /Library/LaunchAgents Per-user agents provided by the administrator. /Library/LaunchDaemons System wide daemons provided by the administrator. /System/Library/LaunchAgents OS X Per-user agents. /System/Library/LaunchDaemons OS X System wide daemons.
Therefore I’ve now decided to amend the documentation and put all my scripts in
/Library/LaunchDaemons. I hope you all agree that this is a better place.