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

20 lines
235 B
Plaintext
Raw Normal View History

2018-04-21 22:43:57 +02:00
#!/sbin/openrc-run
2018-09-13 19:57:14 +02:00
description="FrontlineSMS container"
2018-04-21 22:43:57 +02:00
start() {
2018-09-13 19:57:14 +02:00
lxc-start frontlinesms
2018-04-21 22:43:57 +02:00
}
start_post() {
vmmgr register-proxy frontlinesms
2018-04-21 22:43:57 +02:00
}
stop_pre() {
vmmgr unregister-proxy frontlinesms
2018-04-21 22:43:57 +02:00
}
stop() {
2018-09-13 19:57:14 +02:00
lxc-stop frontlinesms
2018-04-21 22:43:57 +02:00
}