26 lines
358 B
Plaintext
Executable File
26 lines
358 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="CTS docker container"
|
|
|
|
depend() {
|
|
need docker net postgres
|
|
use dns logger netmount
|
|
}
|
|
|
|
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/local/bin/spotter-appmgr update-hosts cts
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop cts
|
|
}
|