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

24 lines
315 B
Plaintext
Executable File

#!/sbin/openrc-run
description="OpenDataKit Build container"
depend() {
need cgroups postgres
}
start() {
lxc-start opendatakit-build
}
start_post() {
/usr/bin/vmmgr register-proxy opendatakit-build
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy opendatakit-build
}
stop() {
lxc-stop opendatakit-build
}