29 lines
369 B
Plaintext
Executable File
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
|
|
}
|