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

20 lines
243 B
Plaintext
Raw Normal View History

2018-01-19 15:50:15 +01:00
#!/sbin/openrc-run
2018-09-13 15:50:30 +02:00
description="MariaDB container"
2018-01-19 15:50:15 +01:00
depend() {
2018-09-13 15:50:30 +02:00
need cgroups
2018-01-19 15:50:15 +01:00
}
start() {
2018-09-13 15:50:30 +02:00
/usr/bin/lxc-start mariadb
2018-01-19 15:50:15 +01:00
}
start_post() {
2018-09-13 15:50:30 +02:00
ewaitfile 60 /var/lib/lxc/mariadb/delta0/run/mysqld/mysqld.sock
}
2018-01-19 15:50:15 +01:00
stop() {
2018-09-13 15:50:30 +02:00
/usr/bin/lxc-stop mariadb
2018-01-19 15:50:15 +01:00
}