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

24 lines
269 B
Plaintext
Executable File

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