]> git.pld-linux.org Git - packages/dspam.git/blobdiff - dspam.init
- fix %post scriptlets (now plugins are installed in dspam dubdir)
[packages/dspam.git] / dspam.init
index ba3f02f7837f84583370a681fd805993036b8b2c..3582e86f0f511d2589ac2d9bbc7b01e21cf2d90f 100644 (file)
@@ -20,7 +20,7 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/dspam ]; then
                msg_starting dspam
-               daemon --fork /usr/bin/dspam --daemon
+               daemon --fork --user mail /usr/bin/dspam --daemon
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dspam
        else
@@ -30,8 +30,8 @@ case "$1" in
   stop)
        if [ -f /var/lock/subsys/dspam ]; then
                msg_stopping dspam
-               killproc dspam
-               rm -f /var/run/dspam.pid /var/lock/subsys/dspam >/dev/null 2>&1
+               killproc --pidfile dspam/dspam.pid dspam
+               rm -f /var/lock/subsys/dspam >/dev/null 2>&1
        else
                msg_not_running dspam
        fi
@@ -51,7 +51,7 @@ case "$1" in
                killproc dspam -HUP
                RETVAL=$?
        else
-               msg_not_running dspam >&2
+               msg_not_running dspam
                exit 7
        fi
        ;;
This page took 0.1862 seconds and 4 git commands to generate.