summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2009-08-13 17:31:50 +0100
committerDavid Wragg <dpw@lshift.net>2009-08-13 17:31:50 +0100
commit71e0a1d3fa1ce936049844e635ad0183238b82fe (patch)
tree9bb9aef68040c5ad8a34dacf1a18f2db996cce02
parent9824ac05d733f91eb6338392fb0d1d9fc18fb957 (diff)
downloadrabbitmq-server-71e0a1d3fa1ce936049844e635ad0183238b82fe.tar.gz
Reconcile actions peformed by the init scripts
Not all the actions behave according to specs, but this is a general issue with our init scripts.
-rw-r--r--packaging/RPMS/Fedora/init.d7
-rw-r--r--packaging/debs/Debian/debian/init.d4
2 files changed, 3 insertions, 8 deletions
diff --git a/packaging/RPMS/Fedora/init.d b/packaging/RPMS/Fedora/init.d
index ca61eafd..1439f563 100644
--- a/packaging/RPMS/Fedora/init.d
+++ b/packaging/RPMS/Fedora/init.d
@@ -115,12 +115,7 @@ case "$1" in
echo -n "Rotating log files for $DESC: "
rotate_logs_rabbitmq
;;
- force-reload|reload|restart)
- echo -n "Restarting $DESC: "
- restart_rabbitmq
- echo "$NAME."
- ;;
- condrestart|try-restart)
+ force-reload|reload|restart|condrestart|try-restart)
echo -n "Restarting $DESC: "
restart_rabbitmq
echo "$NAME."
diff --git a/packaging/debs/Debian/debian/init.d b/packaging/debs/Debian/debian/init.d
index e046364a..10a6c498 100644
--- a/packaging/debs/Debian/debian/init.d
+++ b/packaging/debs/Debian/debian/init.d
@@ -115,13 +115,13 @@ case "$1" in
echo -n "Rotating log files for $DESC: "
rotate_logs_rabbitmq
;;
- force-reload|restart)
+ force-reload|reload|restart|condrestart|try-restart)
echo -n "Restarting $DESC: "
restart_rabbitmq
echo "$NAME."
;;
*)
- echo "Usage: $0 {start|stop|status|rotate-logs|restart|force-reload}" >&2
+ echo "Usage: $0 {start|stop|status|rotate-logs|restart|condrestart|try-restart|reload|force-reload}" >&2
RETVAL=1
;;
esac