diff options
-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 |