summaryrefslogtreecommitdiff
path: root/system/apache-activemq/rc.activemq
diff options
context:
space:
mode:
Diffstat (limited to 'system/apache-activemq/rc.activemq')
-rw-r--r--system/apache-activemq/rc.activemq21
1 files changed, 21 insertions, 0 deletions
diff --git a/system/apache-activemq/rc.activemq b/system/apache-activemq/rc.activemq
new file mode 100644
index 0000000000..0f225dc2d6
--- /dev/null
+++ b/system/apache-activemq/rc.activemq
@@ -0,0 +1,21 @@
+#!/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
+