summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-05-06 13:37:39 +0100
committerSteve Kemp <steve@steve.org.uk>2015-05-06 13:37:39 +0100
commit2e0b8273fd4f143e556bfec43c38bd547b1a3378 (patch)
treeae259ce382d7d2287045c6959cb7f36e268f5918 /debian
parent8629c353d873b0dd07d3b39f52d5a8c4873f0f28 (diff)
Ensure we restart the worker on upgrade.
This caters to the new systems too.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/postinst8
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