masqmail-0.2
annotate redhat/masqmail @ 0:08114f7dcc23
this is masqmail-0.2.21 from oliver kurth
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 17:05:23 +0200 |
parents | |
children |
rev | line source |
---|---|
meillo@0 | 1 #! /bin/sh |
meillo@0 | 2 # Author: Oliver Kurth <okurth@uni-sw.gwdg.de> |
meillo@0 | 3 # Iain Lea <iain@bricbrac.de> |
meillo@0 | 4 # |
meillo@0 | 5 # /etc/rc.d/init.d/masqmail |
meillo@0 | 6 # |
meillo@0 | 7 |
meillo@0 | 8 # Source function library. |
meillo@0 | 9 . /etc/rc.d/init.d/functions |
meillo@0 | 10 |
meillo@0 | 11 if test -z "$MASQMAIL_ARGS" ; then |
meillo@0 | 12 MASQMAIL_ARGS="-bd -q30m" |
meillo@0 | 13 fi |
meillo@0 | 14 |
meillo@0 | 15 RETVAL=0 |
meillo@0 | 16 |
meillo@0 | 17 # See how we were called. |
meillo@0 | 18 case "$1" in |
meillo@0 | 19 start) |
meillo@0 | 20 echo -n "Starting SMTP (MasqMail): " |
meillo@0 | 21 daemon /usr/sbin/sendmail $MASQMAIL_ARGS |
meillo@0 | 22 RETVAL=$? |
meillo@0 | 23 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/masqmail |
meillo@0 | 24 echo |
meillo@0 | 25 ;; |
meillo@0 | 26 stop) |
meillo@0 | 27 echo -n "Shutting down SMTP (MasqMail): " |
meillo@0 | 28 killproc sendmail |
meillo@0 | 29 RETVAL=$? |
meillo@0 | 30 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/masqmail |
meillo@0 | 31 echo |
meillo@0 | 32 ;; |
meillo@0 | 33 restart|reload) |
meillo@0 | 34 $0 stop |
meillo@0 | 35 $0 start |
meillo@0 | 36 RETVAL=$? |
meillo@0 | 37 ;; |
meillo@0 | 38 status) |
meillo@0 | 39 status sendmail |
meillo@0 | 40 RETVAL=$? |
meillo@0 | 41 ;; |
meillo@0 | 42 *) |
meillo@0 | 43 echo "Usage: $0 {start|stop|status|restart|reload}" |
meillo@0 | 44 exit 1 |
meillo@0 | 45 ;; |
meillo@0 | 46 esac |
meillo@0 | 47 |
meillo@0 | 48 exit $RETVAL |