Spotter-VM/cts/etc/init.d/cts

23 lines
318 B
Plaintext
Raw Normal View History

2017-12-26 09:33:47 +01:00
#!/sbin/openrc-run
description="CTS docker container"
depend() {
need docker net postgres
2017-12-26 09:33:47 +01:00
use dns logger netmount
}
start() {
/usr/bin/docker run -d --rm \
--name cts \
-h cts \
--link postgres \
-p 127.0.0.1:8006:8006 \
-v /srv/cts/conf:/srv/cts/cts/settings \
cts
2017-12-26 09:33:47 +01:00
}
stop() {
/usr/bin/docker stop cts
}