Spotter-VM/lxc-apps/ushahidi/install/etc/init.d/ushahidi

24 lines
243 B
Plaintext
Raw Normal View History

2018-01-24 15:18:55 +01:00
#!/sbin/openrc-run
2018-09-14 09:43:54 +02:00
description="Ushahidi container"
2018-01-24 15:18:55 +01:00
depend() {
need mariadb
2018-01-24 15:18:55 +01:00
}
start() {
2018-09-14 09:43:54 +02:00
lxc-start ushahidi
2018-01-24 15:18:55 +01:00
}
start_post() {
vmmgr register-proxy ushahidi
}
stop_pre() {
vmmgr unregister-proxy ushahidi
}
2018-01-24 15:18:55 +01:00
stop() {
2018-09-14 09:43:54 +02:00
lxc-stop ushahidi
2018-01-24 15:18:55 +01:00
}