Changed files:
spamassassin-spamd.init -> 1.7
rm -f /var/lock/subsys/spamd
}
+condrestart() {
+ if [ ! -f /var/lock/subsys/spamd ]; then
+ msg_not_running "SpamAssassin"
+ RETVAL=$1
+ return
+ fi
+
+ stop
+ start
+}
+
# See how we were called.
case "$1" in
start)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
status spamd
;;
*)
- msg_usage "$0 {start|stop|restart|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 1
esac