mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
50562f88df
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
21 lines
280 B
Bash
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
|
|
|