28
28
PGBOUNCER_INITD = ['sudo', '/etc/init.d/pgbouncer']
36
31
def run_pgbouncer(log, cmd):
37
32
"""Invoke the pgbouncer initscript.
39
34
:param cmd: One of 'start', 'stop' or 'status'.
41
assert cmd in ('start', 'stop', 'status'), (
36
assert cmd in ('start', 'stop', 'status'), '''
44
40
pgbouncer_rc = subprocess.call(PGBOUNCER_INITD + [cmd])