View | Details | Raw Unified | Return to bug 207881 | Differences between
and this patch

Collapse All | Expand All

(-)activemq_new (-2 / +7 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: head/net/activemq/files/activemq.in 345533 2014-02-21 20:05:35Z tj $
3
# $FreeBSD: branches/2016Q1/net/activemq/files/activemq.in 345533 2014-02-21 20:05:35Z tj $
4
#
4
#
5
5
6
# PROVIDE: activemq
6
# PROVIDE: activemq
Lines 65-70 Link Here
65
command="/usr/sbin/daemon"
65
command="/usr/sbin/daemon"
66
command_args="-f -p ${pidfile} ${java_command} start"
66
command_args="-f -p ${pidfile} ${java_command} start"
67
start_precmd="activemq_precmd"
67
start_precmd="activemq_precmd"
68
start_cmd="activemq_start"
68
status_cmd="activemq_status"
69
status_cmd="activemq_status"
69
stop_cmd="activemq_stop"
70
stop_cmd="activemq_stop"
70
71
Lines 81-87 Link Here
81
82
82
activemq_stop() {
83
activemq_stop() {
83
	rc_pid=$(activemq_check_pidfile $pidfile)
84
	rc_pid=$(activemq_check_pidfile $pidfile)
84
85
	if [ -z "$rc_pid" ]; then
85
	if [ -z "$rc_pid" ]; then
86
		[ -n "$rc_fast" ] && return 0
86
		[ -n "$rc_fast" ] && return 0
87
		echo "${name} not running? (check $pidfile)."
87
		echo "${name} not running? (check $pidfile)."
Lines 142-145 Link Here
142
	fi
142
	fi
143
}
143
}
144
144
145
activemq_start() {
146
    echo "Staring activemq..."
147
    exec $command $command_args
148
}
149
145
run_rc_command "$1"
150
run_rc_command "$1"

Return to bug 207881