Spotter-VM/cts/setup/etc/init.d/cts
2018-09-13 10:38:58 +02:00

29 lines
369 B
Plaintext
Executable File

#!/sbin/openrc-run
description="CTS docker container"
depend() {
need docker postgres
}
start() {
/usr/bin/docker run -d --rm \
--name cts \
-h cts \
--link postgres \
-v /srv/cts/conf:/srv/cts/cts/settings \
cts
}
start_post() {
/usr/bin/vmmgr register-proxy cts
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy cts
}
stop() {
/usr/bin/docker stop cts
}