diff options
author | root <root@jones.dk> | 2010-03-16 21:26:01 +0100 |
---|---|---|
committer | root <root@jones.dk> | 2010-03-16 21:26:01 +0100 |
commit | b3b3125f8a92670a13e38a972b439abf3b05fb68 (patch) | |
tree | 080d1c7051ec4accb404326af29661c7163c6617 | |
parent | 4d2b841cfed596f80fe9241e0e3106f1deb46a6d (diff) |
Add spamassassin hook to restart 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 |