aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2009-07-04 20:00:11 +0800
committerbms <bms@FreeBSD.org>2009-07-04 20:00:11 +0800
commit0d15f5087faa20ab138e5d4b3d3461a659c86dfe (patch)
tree676aa8655c774031774bf0c54601d2b72b19dea5 /net
parent7a7f288b1fe52f45cf85d9bc40acd8e0323aa90c (diff)
downloadfreebsd-ports-gnome-0d15f5087faa20ab138e5d4b3d3461a659c86dfe.tar.gz
freebsd-ports-gnome-0d15f5087faa20ab138e5d4b3d3461a659c86dfe.tar.zst
freebsd-ports-gnome-0d15f5087faa20ab138e5d4b3d3461a659c86dfe.zip
fix rotate_logs and status sub-commands in rc.d script;
the shell functions use the wrong quoting.
Diffstat (limited to 'net')
-rw-r--r--net/rabbitmq/files/rabbitmq.in18
1 files changed, 3 insertions, 15 deletions
diff --git a/net/rabbitmq/files/rabbitmq.in b/net/rabbitmq/files/rabbitmq.in
index 37096b8a5d5c..8365b02b0caf 100644
--- a/net/rabbitmq/files/rabbitmq.in
+++ b/net/rabbitmq/files/rabbitmq.in
@@ -21,25 +21,13 @@ rcvar=`set_rcvar`
rabbitmq_enable=${rabbitmq_enable:-"NO"}
rabbitmq_user=${rabbitmq_user:-"rabbitmq"}
rabbitmq_nodes=${rabbitmq_nodes:-"1"}
-
rabbitmq_multi="%%PREFIX%%/sbin/rabbitmq-multi"
+
start_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_multi} start_all ${rabbitmq_nodes}\"'"
stop_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_multi} stop_all\"'"
-
+rotate_logs_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_multi} rotate_logs\"'"
+status_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_multi} status\"'"
extra_commands="rotate_logs status"
-rotate_logs_cmd="${name}_rotate_logs"
-status_cmd="${name}_status"
-
-rabbitmq_rotate_logs()
-{
- env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_multi} rotate_logs\"'"
-}
-
-rabbitmq_status()
-{
- env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_multi} status\"'"
-}
-
load_rc_config $name
run_rc_command "$1"