From 60522b426b1d42b84db9d88e2b9c3ab675cfe31e Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 18 Oct 2004 22:25:41 +0000 Subject: Fixed startup script. --- ChangeLog | 1 + scripts/clamsmtpd.sh | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3996fd6..764e008 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 0.9.7 + - Removed user option from startup script (use User config option) - Don't send lines that are too long to syslog [Ben Mesman] 0.9.6 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 -- cgit v1.2.3