diff options
Diffstat (limited to 'net/rabbitmq/files/rabbitmq.in')
-rw-r--r-- | net/rabbitmq/files/rabbitmq.in | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/rabbitmq/files/rabbitmq.in b/net/rabbitmq/files/rabbitmq.in index b13d9d4ebb7b..7b69526427f8 100644 --- a/net/rabbitmq/files/rabbitmq.in +++ b/net/rabbitmq/files/rabbitmq.in @@ -8,7 +8,7 @@ # BEFORE: LOGIN # KEYWORD: shutdown # -# Add the following line to /etc/rc.conf to enable RabitMQ +# Add the following line to /etc/rc.conf to enable RabbitMQ # # rabbitmq_enable="YES" @@ -20,13 +20,13 @@ rcvar=`set_rcvar` # Set some defaults rabbitmq_enable=${rabbitmq_enable:-"NO"} rabbitmq_user=${rabbitmq_user:-"rabbitmq"} -rabbitmq_nodes=${rabbitmq_nodes:-"1"} -rabbitmq_multi="%%PREFIX%%/sbin/rabbitmq-multi" +rabbitmq_server="%%PREFIX%%/sbin/rabbitmq-server" +rabbitmq_ctl="%%PREFIX%%/sbin/rabbitmqctl" -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\"'" +start_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_server} -detached\"'" +stop_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_ctl} stop\"'" +rotate_logs_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_ctl} rotate_logs\"'" +status_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_ctl} status\"'" extra_commands="rotate_logs status" load_rc_config $name |