Spotter-VM/ckan/setup/etc/init.d/ckan
2018-09-12 11:56:31 +02:00

24 lines
277 B
Plaintext
Executable File

#!/sbin/openrc-run
description="CKAN container"
depend() {
need cgroups ckan-datapusher postgres redis solr
}
start() {
lxc-start ckan
}
start_post() {
/usr/bin/vmmgr register-proxy ckan
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy ckan
}
stop() {
lxc-stop ckan
}