Created
July 1, 2011 21:42
-
-
Save mrrooijen/1059459 to your computer and use it in GitHub Desktop.
Upstart PostgreSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
script | |
exec su -c "/etc/postgresql/bin/postgres -D /usr/local/pgsql/data" postgres | |
end script | |
# note | |
# change the path ( /etc/postgresql/bin/postgres ) to the directory | |
# you installed postgresql if it different from this directory. |
Thanks for pointing that out. Didn't know you could omit it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why are you using the
script
stanza here? Just useexec
.