From f220a7df9bc9b607415b7975fce94517b035fc08 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 16 Aug 2010 23:01:00 +0200 Subject: update Signed-off-by: Florian Pritz --- spampd/rc-script | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'spampd/rc-script') diff --git a/spampd/rc-script b/spampd/rc-script index 364e064..7c4b059 100755 --- a/spampd/rc-script +++ b/spampd/rc-script @@ -4,11 +4,9 @@ . /etc/rc.d/functions . /etc/conf.d/spampd -PID=$(cat /var/run/spampd.pid) - start() { stat_busy "Starting Spampd" - /usr/bin/spampd $ARGS + su -l spampd -c "/usr/bin/spampd $ARGS" if [ $? -gt 0 ]; then stat_fail else @@ -19,11 +17,11 @@ start() { stop() { stat_busy "Stopping Spampd" - kill $PID + kill $(cat /home/spampd/spampd.pid) if [ $? -gt 0 ]; then stat_fail else - rm_daemon postfix + rm_daemon spampd stat_done fi } -- cgit v1.2.3-24-g4f1b