diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2009-07-04 12:00:11 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2009-07-04 12:00:11 +0000 |
commit | 0f22d70819eaead749677ef6e752f27499446d3e (patch) | |
tree | 127659420c3cbea1b7dd1cdbb667cbe007571b66 /net/rabbitmq | |
parent | Update to 2.26.3. (diff) |
fix rotate_logs and status sub-commands in rc.d script;
the shell functions use the wrong quoting.
Notes
Notes:
svn path=/head/; revision=237089
Diffstat (limited to 'net/rabbitmq')
-rw-r--r-- | net/rabbitmq/files/rabbitmq.in | 18 |
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" |