| Article: |
Start Me Up: Writing and Understanding OS X StartupItems | |
| Subject: | Stop | |
| Date: | 2003-10-23 12:35:53 | |
| From: | anonymous2 | |
|
Response to: Stop
|
||
| Killing a process isn't enough for many types of servers - it can result in data loss, or worse. Without support for shutdown items, OS X is still not suitable for use as a server OS. This is the most glaring omission in an otherwise fine OS, and is a show-stopper for serious use. | ||
Showing messages 1 through 1 of 1.
-
Stop
2003-10-23 13:55:29 Andrew Anderson | [View]



If you write a script that does:
1.) stop all services that were started as StartupServices, ie/ run 'SystemStarter stop'
2.) stop all services that were started outside of StartupServices (like something that was put manually into rc )
3.) if you are allowing remote ssh logins, warn users that the machine is shutting down with "write"
Run the script as root and then do the shutdown. Or write an AppleScript that does the shutdown for you and add that to the script.