--- activemq_old 2016-03-10 13:42:13.983995000 +0000 +++ activemq_new 2016-03-10 13:45:19.489405000 +0000 @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: head/net/activemq/files/activemq.in 345533 2014-02-21 20:05:35Z tj $ +# $FreeBSD: branches/2016Q1/net/activemq/files/activemq.in 345533 2014-02-21 20:05:35Z tj $ # # PROVIDE: activemq @@ -65,6 +65,7 @@ command="/usr/sbin/daemon" command_args="-f -p ${pidfile} ${java_command} start" start_precmd="activemq_precmd" +start_cmd="activemq_start" status_cmd="activemq_status" stop_cmd="activemq_stop" @@ -81,7 +82,6 @@ activemq_stop() { rc_pid=$(activemq_check_pidfile $pidfile) - if [ -z "$rc_pid" ]; then [ -n "$rc_fast" ] && return 0 echo "${name} not running? (check $pidfile)." @@ -142,4 +142,9 @@ fi } +activemq_start() { + echo "Staring activemq..." + exec $command $command_args +} + run_rc_command "$1"