From 305de55ddaf9cd50e77dab247f433bf657f1c98d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 22 Aug 2016 18:12:22 +0100 Subject: Revert "Disable reload command in rc scripts" This reverts commit 869af99b494d89e6d100657db4d5430cc6539f51. --- debian/rspamd.init | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/rspamd.init b/debian/rspamd.init index 784f0ac96..1a270692e 100644 --- a/debian/rspamd.init +++ b/debian/rspamd.init @@ -104,6 +104,11 @@ case "$1" in status) status_of_proc -p $PIDFILE "$DAEMON" "$NAME" || exit $? ;; + reload|force-reload) + log_daemon_msg "Reloading $DESC" "$NAME" + do_reload + log_end_msg $? + ;; reopenlog) log_daemon_msg "Reopen logs for $DESC" "$NAME" do_reopenlog @@ -128,7 +133,7 @@ case "$1" in esac ;; *) - echo "Usage: $SCRIPTNAME {start|stop|restart|reopenlog}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|reopenlog}" >&2 exit 3 ;; esac -- cgit v1.2.3