Skip to content

Instantly share code, notes, and snippets.

@alexindigo
Created January 3, 2012 17:07
Show Gist options
  • Save alexindigo/1555829 to your computer and use it in GitHub Desktop.
Save alexindigo/1555829 to your computer and use it in GitHub Desktop.
Postgres upstart script (/etc/init)
description "postgres server"
start on runlevel [2345]
stop on shutdown
expect fork
exec sudo -u postgres /usr/local/bin/postgres -D /var/db/postgres
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment