diff options
Diffstat (limited to 'security/razorback-dispatcher/files/dispatcher.in')
-rw-r--r-- | security/razorback-dispatcher/files/dispatcher.in | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/security/razorback-dispatcher/files/dispatcher.in b/security/razorback-dispatcher/files/dispatcher.in deleted file mode 100644 index e1240a59700f..000000000000 --- a/security/razorback-dispatcher/files/dispatcher.in +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ -# -# PROVIDE: dispatcher -# REQUIRE: %%ACTIVEMQ%%mysql -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable the razorback dispatcher: -# -# dispatcher_enable="YES" - -. /etc/rc.subr - -name=dispatcher -rcvar=dispatcher_enable - -load_rc_config $name - -dispatcher_enable=${dispatcher_enable:-"NO"} -dispatcher_user=${dispatcher_user:-"razorback"} -dispatcher_group=${dispatcher_group:-"razorback"} - -command=%%PREFIX%%/bin/dispatcher - -start_precmd="dispatcher_precmd-%%ACTIVEMQ_LOC%%" -_piddir=/var/run/razorback -pidfile=${_piddir}/dispatcher.pid - -dispatcher_precmd-remote() -{ - install -d -o $dispatcher_user -g $dispatcher_user -m 755 $_piddir -} - -dispatcher_precmd-local() -{ - local iter - - install -d -o $dispatcher_user -g $dispatcher_user -m 755 $_piddir - iter=0 - while [ `sockstat -l | egrep -c '^activemq.*tcp.*'` -lt 4 ]; do - if [ ${iter} -eq 30 ]; then - err 1 "Failed to detect a functional activemq. Please check your configuration" - fi - sleep 2 - iter=$(( ${iter} + 1)) - done -} - -run_rc_command "$1" |