From 2e0b8273fd4f143e556bfec43c38bd547b1a3378 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 6 May 2015 13:37:39 +0100 Subject: Ensure we restart the worker on upgrade. This caters to the new systems too. --- debian/postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'debian') 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 -- cgit v1.2.1