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

17 lines
310 B
Plaintext
Raw Normal View History

2018-01-19 15:50:15 +01:00
#!/sbin/openrc-run
description="MariaDB docker container"
depend() {
need docker net
use dns logger netmount
}
start() {
/usr/bin/docker run -d --rm --name mariadb -h mariadb -v /srv/mariadb/my.cnf:/etc/mysql/my.cnf -v /srv/mariadb/data:/var/lib/mysql mariadb
}
stop() {
2018-01-19 16:02:41 +01:00
/usr/bin/docker stop mariadb
2018-01-19 15:50:15 +01:00
}