]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.init
- translated kloczkish into english
[packages/sendmail.git] / sendmail.init
index b64f99e8499b0b1ac92e5cedf35acad0249071ce..ab890106efa913cfd5a78cfe1bc23ff243d87ea8 100644 (file)
 [ -f /etc/sysconfig/sendmail ] && . /etc/sysconfig/sendmail
 
 # Check that networking is up.
-[ "${NETWORKING}" = "no" ] && echo "Error: Networking is down" && exit 0
-
+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
@@ -36,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
        ;;
@@ -57,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.029228 seconds and 4 git commands to generate.