diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-01-12 14:59:39 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-01-12 14:59:39 +0000 |
commit | 4a7343bd0ffe001a4ddfbfa49358b2f64f74836e (patch) | |
tree | 16f3ecc42a50dd769a8c20bd8541a129c730c2e8 /debian | |
parent | 8fa995360fa2b71c9681662adffc427faf53228c (diff) |
Restart all services.
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/postinst | 8 |
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# |