mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
abeae21be1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
24 lines
366 B
Bash
24 lines
366 B
Bash
#!/bin/sh
|
|
# Start/stop/restart Apache ActiveMQ daemon
|
|
|
|
DAEMON="/usr/share/activemq/bin/activemq"
|
|
. /etc/default/activemq
|
|
|
|
case "$1" in
|
|
'start')
|
|
mkdir -p /tmp/activemq
|
|
chown $ACTIVEMQ_USER /tmp/activemq
|
|
${DAEMON} start
|
|
;;
|
|
'stop')
|
|
${DAEMON} stop
|
|
;;
|
|
'restart')
|
|
${DAEMON} stop
|
|
sleep 1
|
|
${DAEMON} start
|
|
;;
|
|
*)
|
|
echo "usage $0 start|stop|restart"
|
|
esac
|
|
|