summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-10-18 22:25:41 +0000
committerStef Walter <stef@memberwebs.com>2004-10-18 22:25:41 +0000
commit60522b426b1d42b84db9d88e2b9c3ab675cfe31e (patch)
tree654da2c23785eaa8cf12654fec3c5e0c834a6c23 /scripts
parentbc1291991f7f9feef10f7a41be050654011f5bfe (diff)
Fixed startup script.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/clamsmtpd.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/clamsmtpd.sh b/scripts/clamsmtpd.sh
index 0b7efe4..167a997 100644
--- a/scripts/clamsmtpd.sh
+++ b/scripts/clamsmtpd.sh
@@ -7,9 +7,6 @@
# For more info see:
# man clamsmtpd.conf
-# The user to run as
-user=clamav
-
# The prefix clamsmtpd was installed to
prefix=/usr/local/
@@ -23,12 +20,12 @@ case $1 in
start)
mkdir -p $piddir
chown $user $piddir
- su -m $user -c "$prefix/sbin/clamsmtpd -p $piddir/clamsmtpd.pid"
- echo -n "clam-smtpd "
+ $prefix/sbin/clamsmtpd -p $piddir/clamsmtpd.pid
+ echo -n "clamsmtpd "
;;
stop)
[ -f $piddir/clamsmtpd.pid ] && kill `cat $piddir/clamsmtpd.pid`
- echo -n "clam-smtpd "
+ echo -n "clamsmtpd "
;;
*)
echo "usage: clamsmptd.sh {start|stop}" >&2