Spotter-VM/ushahidi/setup/etc/init.d/ushahidi

24 lines
261 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() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy ushahidi
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/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
}