masqmail-0.2

view 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 source
1 #! /bin/sh
2 # Author: Oliver Kurth <okurth@uni-sw.gwdg.de>
3 # Iain Lea <iain@bricbrac.de>
4 #
5 # /etc/rc.d/init.d/masqmail
6 #
8 # Source function library.
9 . /etc/rc.d/init.d/functions
11 if test -z "$MASQMAIL_ARGS" ; then
12 MASQMAIL_ARGS="-bd -q30m"
13 fi
15 RETVAL=0
17 # See how we were called.
18 case "$1" in
19 start)
20 echo -n "Starting SMTP (MasqMail): "
21 daemon /usr/sbin/sendmail $MASQMAIL_ARGS
22 RETVAL=$?
23 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/masqmail
24 echo
25 ;;
26 stop)
27 echo -n "Shutting down SMTP (MasqMail): "
28 killproc sendmail
29 RETVAL=$?
30 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/masqmail
31 echo
32 ;;
33 restart|reload)
34 $0 stop
35 $0 start
36 RETVAL=$?
37 ;;
38 status)
39 status sendmail
40 RETVAL=$?
41 ;;
42 *)
43 echo "Usage: $0 {start|stop|status|restart|reload}"
44 exit 1
45 ;;
46 esac
48 exit $RETVAL