diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-05-06 13:37:39 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-05-06 13:37:39 +0100 |
commit | 2e0b8273fd4f143e556bfec43c38bd547b1a3378 (patch) | |
tree | ae259ce382d7d2287045c6959cb7f36e268f5918 /debian/postinst | |
parent | 8629c353d873b0dd07d3b39f52d5a8c4873f0f28 (diff) |
Ensure we restart the worker on upgrade.
This caters to the new systems too.
Diffstat (limited to 'debian/postinst')
-rwxr-xr-x | debian/postinst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/postinst b/debian/postinst index b181533..5868d79 100755 --- a/debian/postinst +++ b/debian/postinst @@ -19,17 +19,17 @@ fi # -# 1. Flush the queue +# 1. Flush the queue, if present. # custodian-queue --flush || true # -# 2. If we have agents then restart them +# 2. If we have agents then restart them. # -for i in /etc/service/custodian-agent*; do +for i in /etc/service/custodian-agent* /etc/service/cust-dequeue ; do if [ -d $i ] ; then echo "Restarting service: $i" - sv restart $i + sv force-restart $i fi done |