3 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/cyrus/bin
4 DAEMON=/usr/cyrus/bin/master
6 DESC="Cyrus IMAP Master Daemon"
10 echo -n "Starting $DESC: $NAME"
11 start-stop-daemon --start --quiet --background --pidfile /var/run/$NAME.pid --exec $DAEMON
15 echo -n "Stopping $DESC: $NAME "
16 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
18 killall imapd pop3d timsieved master lmtpd notifyd 2>/dev/null
22 echo "Reloading $DESC configuration..."
23 start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
33 echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2