]> git.pld-linux.org Git - packages/sendmail.git/commitdiff
- use pidfiles to kill sendmail procs
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 1 Dec 2005 11:09:25 +0000 (11:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- and client-queue pid was in completely different location
- now service sendmail restart at least works

Changed files:
    sendmail.init -> 1.19

sendmail.init

index 50ede72a2df8fe196f07069a21b697168d459096..20e3fa8dda296892706e19a2cd1e5bf3bef227b8 100644 (file)
@@ -64,8 +64,6 @@ case "$1" in
        fi
        if [ ! -f /var/lock/subsys/sm-client ]; then
                msg_starting sm-client
-               touch /var/run/sm-client.pid
-               chown smmsp:smmsp /var/run/sm-client.pid
                daemon /usr/sbin/sendmail -L sm-msp-queue -Ac -q$SMQUEUE
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
@@ -77,16 +75,16 @@ case "$1" in
        if [ -f /var/lock/subsys/sendmail ]; then
                # Stop daemons.
                msg_stopping sendmail
-               killproc sendmail
-               rm -f /var/lock/subsys/sendmail
+               killproc --pidfile sendmail.pid sendmail
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail
        else
                msg_not_running sendmail
        fi
        if [ -f /var/lock/subsys/sm-client ]; then
                msg_stopping sm-client
-               killproc sendmail
+               killproc --pidfile /var/spool/clientmqueue/sm-client.pid sendmail
                RETVAL=$?
-               [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid
                [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sm-client
        else
                msg_not_running sm-client
This page took 0.061504 seconds and 4 git commands to generate.