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

24 lines
269 B
Plaintext
Raw Normal View History

2017-12-19 22:17:12 +01:00
#!/sbin/openrc-run
2018-09-05 22:20:24 +02:00
description="CKAN container"
2017-12-19 22:17:12 +01:00
depend() {
need ckan-datapusher postgres redis solr
2017-12-19 22:17:12 +01:00
}
start() {
2018-09-07 15:47:44 +02:00
lxc-start ckan
2017-12-19 22:17:12 +01:00
}
2018-03-25 22:55:15 +02:00
start_post() {
2018-09-12 11:56:31 +02:00
/usr/bin/vmmgr register-proxy ckan
}
stop_pre() {
2018-09-12 11:56:31 +02:00
/usr/bin/vmmgr unregister-proxy ckan
2018-03-25 22:55:15 +02:00
}
2017-12-19 22:17:12 +01:00
stop() {
2018-09-07 15:47:44 +02:00
lxc-stop ckan
2017-12-19 22:17:12 +01:00
}