Spotter-VM/opendatakit-build/install/etc/init.d/opendatakit-build

24 lines
307 B
Plaintext
Raw Normal View History

#!/sbin/openrc-run
2018-09-13 21:52:38 +02:00
description="OpenDataKit Build container"
depend() {
need postgres
}
start() {
2018-09-13 21:52:38 +02:00
lxc-start opendatakit-build
}
start_post() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy opendatakit-build
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy opendatakit-build
}
stop() {
2018-09-13 21:52:38 +02:00
lxc-stop opendatakit-build
}