Created
April 4, 2013 00:08
-
-
Save jaytaylor/5306595 to your computer and use it in GitHub Desktop.
Stunnel and PgBouncer upstart scripts for Ubuntu 12.04 "Precise"
This file contains hidden or 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
| # PgBouncer Upstart script | |
| description "pgbouncer" | |
| start on (net-device-up | |
| and local-filesystems | |
| and runlevel [2345]) | |
| stop on runlevel [016] | |
| respawn | |
| respawn limit 10 30 | |
| exec sudo -uubuntu /usr/local/bin/pgbouncer /etc/pgbouncer.ini |
This file contains hidden or 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
| # Stunnel Upstart script | |
| description "stunnel" | |
| start on (net-device-up | |
| and local-filesystems | |
| and runlevel [2345]) | |
| stop on runlevel [016] | |
| respawn | |
| respawn limit 10 30 | |
| exec /usr/local/bin/stunnel /etc/stunnel/stunnel.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you change the pidfile entry in pgbouncer.ini?
I am getting:
2014-07-29 02:40:27.041 968 FATAL @src/main.c:553 in function write_pidfile(): /var/run/postgresql/pgbouncer.pid: No such file or directory [2]
(starting with 'sudo service pgbouncer start' manually works).