diff options
Diffstat (limited to 'security/amavisd/files/amavisd.sh')
-rw-r--r-- | security/amavisd/files/amavisd.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/amavisd/files/amavisd.sh b/security/amavisd/files/amavisd.sh new file mode 100644 index 000000000000..e09150d0b72e --- /dev/null +++ b/security/amavisd/files/amavisd.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/amavisd ] && su - %%AMAVISUSER%% -c ${PREFIX}/sbin/amavisd > /dev/null 2>&1 && echo -n ' amavisd' + ;; +stop) + echo -n ' amavisd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |