2018-01-23 13:39:50 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="ActiveMQ docker container"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need docker net
|
|
|
|
use dns logger netmount
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/usr/bin/docker run -d --rm \
|
|
|
|
--name activemq \
|
|
|
|
-h activemq \
|
|
|
|
-v /srv/activemq/data:/srv/activemq/data \
|
|
|
|
activemq
|
2018-01-23 13:39:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
/usr/bin/docker stop activemq
|
|
|
|
}
|