summaryrefslogtreecommitdiffstats
path: root/system/apache-activemq/rc.activemq
blob: 0f225dc2d6c416dd7b224405bbdc16431fe4e1a0 (plain)
#!/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