24 lines
277 B
Plaintext
Executable File
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
|
|
}
|