summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-01-12 14:59:39 +0000
committerSteve Kemp <steve@steve.org.uk>2013-01-12 14:59:39 +0000
commit443641e204f560ab6521db6f629ef69c9ab6f324 (patch)
tree07b26a842ae95f64c1a846762fef0c3157ab52a6
parent8c20d063d59ce6a2905b5f08c108e5ba3bbd723f (diff)
Restart all services.
-rwxr-xr-xdebian/postinst8
1 files 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#