~charmers/charms/precise/pgbouncer/trunk

« back to all changes in this revision

Viewing changes to hooks/stop

  • Committer: Stuart Bishop
  • Date: 2014-09-08 07:02:18 UTC
  • mfrom: (60.2.23 devel)
  • Revision ID: stuart@stuartbishop.net-20140908070218-xl76ciy33m0ekfd1
[stub] Python rewrite (mostly) and compatibility with the modern PostgreSQL charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
# Copyright 2012 Canonical Ltd. All rights reserved.
4
 
# Author: Haw Loeung <haw.loeung@canonical.com>
5
 
 
6
 
# pgbouncer charm stop hook
7
 
 
8
 
set -eux # -x for verbose logging to juju debug-log
9
 
. scripts/common
10
 
 
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
15
 
fi