From 443641e204f560ab6521db6f629ef69c9ab6f324 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 12 Jan 2013 14:59:39 +0000 Subject: Restart all services. --- debian/postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/postinst b/debian/postinst index c72c7ac..6310acf 100755 --- a/debian/postinst +++ b/debian/postinst @@ -27,10 +27,10 @@ custodian-queue --flush || true # 2. If we have agents then restart them # if [ -d /etc/service ]; then - test -d /etc/service/custodian-agent1 && sv restart /etc/service/custodian-agent1/ - test -d /etc/service/custodian-agent2 && sv restart /etc/service/custodian-agent2/ - test -d /etc/service/custodian-agent3 && sv restart /etc/service/custodian-agent3/ - test -d /etc/service/custodian-agent4 && sv restart /etc/service/custodian-agent4/ + echo "Restarting services" + for i in /etc/service/custodian-agent*; do + sv restart $i + done fi #DEBHELPER# -- cgit v1.2.1