diff options
author | root <root@mail.bitbase.dk> | 2010-05-15 09:31:03 +0200 |
---|---|---|
committer | root <root@mail.bitbase.dk> | 2010-05-15 09:31:03 +0200 |
commit | 371f8f08f0025426a2410b02f90b36059c58e5d5 (patch) | |
tree | 24869f8f5e9beac450c5532771394c0e31b4968a /amavis | |
parent | 46a9e97a79fc4544cea1cb08d24e4fabb65ddc14 (diff) | |
parent | a4d8cc703997d55331dfb611d70d325ac6962518 (diff) |
Merge branch 'master' of git://source.jones.dk/local-COMMON
Diffstat (limited to 'amavis')
-rwxr-xr-x | amavis/spamassassin/sa-update-hooks.d/local-amavis-restart | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart b/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart new file mode 100755 index 0000000..2e84fe8 --- /dev/null +++ b/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d amavis restart > /dev/null 2>&1 +else + /etc/init.d/amavis restart > /dev/null 2>&1 +fi |