2015-12-16 09:48:15 +01:00
|
|
|
# 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
|
|
|
|
|
|
|
|
expect fork
|
|
|
|
|
|
|
|
script
|
2015-12-16 09:58:42 +01:00
|
|
|
exec pgbouncer -u @UNIX_USER@ @concordia-server_SOURCE_DIR@/db/pgbouncer.ini &
|
2015-12-16 09:48:15 +01:00
|
|
|
sleep 4
|
|
|
|
end script
|