aboutsummaryrefslogtreecommitdiff
path: root/system/apache-activemq/rc.activemq
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2011-10-21 11:23:23 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-10-22 10:17:10 -0200
commit50562f88dff2535a1f84fc03c23a3f5c137871c5 (patch)
tree77cab459b8bf1be87633acbcde9ff9743340493e /system/apache-activemq/rc.activemq
parentae10052ebd5eee1f2dd95f7353d9327334eb5084 (diff)
system/apache-activemq: Added (Apache ActiveMQ)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
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 0000000000000..0f225dc2d6c41
--- /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
+