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

20 lines
243 B
Plaintext
Executable File

#!/sbin/openrc-run
description="MariaDB container"
depend() {
need cgroups
}
start() {
/usr/bin/lxc-start mariadb
}
start_post() {
ewaitfile 60 /var/lib/lxc/mariadb/delta0/run/mysqld/mysqld.sock
}
stop() {
/usr/bin/lxc-stop mariadb
}