diff options
Diffstat (limited to 'spampd/rc-script')
-rwxr-xr-x | spampd/rc-script | 8 |
1 files changed, 3 insertions, 5 deletions
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 } |