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

20 lines
253 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() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy frontlinesms
2018-04-21 22:43:57 +02:00
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/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
}