diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-13 01:30:40 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-13 01:30:40 +0000 |
commit | ea56fc3fdd045c9365db19fd30d1167c631df346 (patch) | |
tree | 49b72a4a4d74d4321d90d60e4ff0e11e7eceb835 /security/amavisd/files/amavisd.sh.sample | |
parent | Update to 0.8.7. (diff) |
add amavisd 20020300
The daemonized version of amavis-perl
PR: 37993
Submitted by: Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
Notes
Notes:
svn path=/head/; revision=58982
Diffstat (limited to 'security/amavisd/files/amavisd.sh.sample')
-rw-r--r-- | security/amavisd/files/amavisd.sh.sample | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/amavisd/files/amavisd.sh.sample b/security/amavisd/files/amavisd.sh.sample new file mode 100644 index 000000000000..b85e66323773 --- /dev/null +++ b/security/amavisd/files/amavisd.sh.sample @@ -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}/amavisd ] && su - %%AMAVISUSER%% -c ${PREFIX}/amavisd > /dev/null 2>&1 && echo -n ' amavisd' + ;; +stop) + echo -n ' amavisd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |