slackbuilds_ponce/system/apache-activemq/rc.activemq
Marco Bonetti 50562f88df system/apache-activemq: Added (Apache ActiveMQ)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
2011-10-22 10:17:10 -02:00

21 lines
280 B
Bash

#!/bin/sh
# Start/stop/restart Apache ActiveMQ daemon
DAEMON="/usr/share/activemq/bin/activemq"
case "$1" in
'start')
${DAEMON} start
;;
'stop')
${DAEMON} stop
;;
'restart')
${DAEMON} stop
sleep 1
${DAEMON} start
;;
*)
echo "usage $0 start|stop|restart"
esac