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

24 lines
261 B
Plaintext
Raw Normal View History

2018-01-23 18:18:46 +01:00
#!/sbin/openrc-run
2018-09-13 21:14:53 +02:00
description="Motech container"
2018-01-23 18:18:46 +01:00
depend() {
need activemq postgres
2018-01-23 18:18:46 +01:00
}
start() {
2018-09-13 21:14:53 +02:00
lxc-start motech
2018-01-23 18:18:46 +01:00
}
start_post() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy motech
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy motech
}
2018-01-23 18:18:46 +01:00
stop() {
2018-09-13 21:14:53 +02:00
lxc-stop motech
2018-01-23 18:18:46 +01:00
}