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

20 lines
243 B
Plaintext
Raw Normal View History

2018-04-21 23:10:55 +02:00
#!/sbin/openrc-run
2018-09-13 21:54:36 +02:00
description="OpenMapKit container"
2018-04-21 23:10:55 +02:00
start() {
2018-09-13 21:54:36 +02:00
lxc-start openmapkit
2018-04-21 23:10:55 +02:00
}
start_post() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy openmapkit
2018-04-21 23:10:55 +02:00
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy openmapkit
2018-04-21 23:10:55 +02:00
}
stop() {
2018-09-13 21:54:36 +02:00
lxc-stop openmapkit
2018-04-21 23:10:55 +02:00
}