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

16 lines
215 B
Plaintext
Executable File

#!/sbin/openrc-run
description="MariaDB container"
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
}