How do I restart things in the /Library/StartupItems directory? I have postgresql set to startup, but I want to restart instead of rebooting.
People succeed in answering Rich Collins's questions 37% of the time (32 successes in 86 attempts).
Answers by: JSO1
It depends on the script in the /Library/StartupItems and the name of the script in /Library/StartupItems
Let's presume the script to start PostgreSQL is called postgresql.
You should be able to do something like this from the OS X command line:
To stop PostgreSQL:
sudo SystemStarter stop postgresql
To start PostgreSQL:
sudo SystemStarter start postgresql
You might be able to do this:
sudo SystemStarter restart postgresql
If these don't work for some reason, feel free to post or email me the script in /Library/StartupItems
Hope this helps!