~charmers/charms/trusty/rsyslog-forwarder/trunk

« back to all changes in this revision

Viewing changes to hooks/syslog-relation-departed

  • Committer: Clint Byrum
  • Date: 2012-04-17 19:39:09 UTC
  • Revision ID: clint@ubuntu.com-20120417193909-60shczuojsctdjdq
Making hooks more robust for add/removes

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
rservice=${JUJU_REMOTE_UNIT%%/*}
6
6
 
7
 
rm -f /etc/rsyslog.d/80-$rservice.conf
8
 
 
9
 
service rsyslog reload
 
7
rm -f /etc/rsyslog.d/80-$JUJU_RELATION_ID.conf
 
8
 
 
9
[ ! -f /etc/rsyslog.d/50-default.conf.off ] || mv -f /etc/rsyslog.d/50-default.conf.off /etc/rsyslog.d/50-default.conf
 
10
 
 
11
service rsyslog restart