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. --- centos/sources/rspamd.init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'centos') diff --git a/centos/sources/rspamd.init b/centos/sources/rspamd.init index 633ed36be..ee3365b31 100644 --- a/centos/sources/rspamd.init +++ b/centos/sources/rspamd.init @@ -111,6 +111,13 @@ case "$1" in restart|configtest) $1 ;; + reload) + rh_status_q || exit 7 + $1 + ;; + force-reload) + force_reload + ;; status) rh_status ;; @@ -119,6 +126,6 @@ case "$1" in restart ;; *) - echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|configtest}" + echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}" exit 2 esac -- cgit v1.2.3