masqmail-0.2
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/redhat/masqmail Fri Sep 26 17:05:23 2008 +0200 1.3 @@ -0,0 +1,48 @@ 1.4 +#! /bin/sh 1.5 +# Author: Oliver Kurth <okurth@uni-sw.gwdg.de> 1.6 +# Iain Lea <iain@bricbrac.de> 1.7 +# 1.8 +# /etc/rc.d/init.d/masqmail 1.9 +# 1.10 + 1.11 +# Source function library. 1.12 +. /etc/rc.d/init.d/functions 1.13 + 1.14 +if test -z "$MASQMAIL_ARGS" ; then 1.15 + MASQMAIL_ARGS="-bd -q30m" 1.16 +fi 1.17 + 1.18 +RETVAL=0 1.19 + 1.20 +# See how we were called. 1.21 +case "$1" in 1.22 + start) 1.23 + echo -n "Starting SMTP (MasqMail): " 1.24 + daemon /usr/sbin/sendmail $MASQMAIL_ARGS 1.25 + RETVAL=$? 1.26 + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/masqmail 1.27 + echo 1.28 + ;; 1.29 + stop) 1.30 + echo -n "Shutting down SMTP (MasqMail): " 1.31 + killproc sendmail 1.32 + RETVAL=$? 1.33 + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/masqmail 1.34 + echo 1.35 + ;; 1.36 + restart|reload) 1.37 + $0 stop 1.38 + $0 start 1.39 + RETVAL=$? 1.40 + ;; 1.41 + status) 1.42 + status sendmail 1.43 + RETVAL=$? 1.44 + ;; 1.45 + *) 1.46 + echo "Usage: $0 {start|stop|status|restart|reload}" 1.47 + exit 1 1.48 + ;; 1.49 +esac 1.50 + 1.51 +exit $RETVAL