3
# Copyright 2012 Canonical Ltd. All rights reserved.
4
# Author: Haw Loeung <haw.loeung@canonical.com>
6
# pgbouncer charm stop hook
8
set -eux # -x for verbose logging to juju debug-log
11
# Stop if pgbouncer is running
12
if /etc/init.d/pgbouncer status > /dev/null; then
13
juju-log "Stopping pgbouncer"
14
/usr/sbin/service pgbouncer stop