After installing PostgreSQL 9.1, I noticed that there is no option in its GUI to prevent it to autostart at system boot. The following commands help in disabling/renabling autostart for PostgreSQL.
See gist at https://gist.github.com/1960888
## Stop PostgreSQL from auto starting in Mac OS X 10.7.x (Lion) sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.1.plist ## Enable PostgreSQL to auto start in Mac OS X 10.7.x (Lion) sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.1.plist ## Note: ## - Without "sudo" the commands seem to run successfully but don't take effect ## - Contents of com.edb.launchd.postgresql-9.1.plist in attached file (Permission MUST be: -rw-r--r-- 1 root wheel)
Posted via email from Abhishek Dev