]> git.pld-linux.org Git - packages/sendmail.git/commitdiff
- updated to rc-scripts 0.2.0
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 28 Mar 2000 12:59:56 +0000 (12:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sendmail.init -> 1.6

sendmail.init

index 08686f4cb045f7f8fff01fc90f5eb12481dd6bf2..ab890106efa913cfd5a78cfe1bc23ff243d87ea8 100644 (file)
 [ -f /etc/sysconfig/sendmail ] && . /etc/sysconfig/sendmail
 
 # Check that networking is up.
-if [ "${NETWORKING}" = "no" ]; then
-       echo "WARNING: Networking is down. Sendmail service can't be runed."
+if is_no "${NETWORKING}"; then
+       msg_Network_Down Sendmail
        exit 1
 fi
 
-
 # See how we were called.
 case "$1" in
   start)
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/sendmail ]; then
-               show Prepare sendmail db
+               show "Prepare sendmail db"
                busy
                newaliases &>/dev/null
                for i in virtusertable access domaintable mailertable; do
@@ -39,16 +38,17 @@ case "$1" in
                        fi
                done 
                deltext;ok
-               show Starting sendmail
+               msg_starting sendmail
                daemon sendmail $SENDMAIL_CF
        else
-               echo "sendmail already is running"
+               msg_Already_Running sendmail
+               exit 1
        fi
        touch /var/lock/subsys/sendmail
        ;;
   stop)
        # Stop daemons.
-       show Shutting down sendmail
+       msg_stopping sendmail
        killproc sendmail
        rm -f /var/lock/subsys/sendmail
        ;;
@@ -60,7 +60,7 @@ case "$1" in
        status sendmail
        ;;
   *)
-       echo "Usage: $0 {start|stop|staus|restart|reload}"
+       msg_Usage "$0 {start|stop|staus|restart|reload}"
        exit 1
 esac
 
This page took 0.072754 seconds and 4 git commands to generate.