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

22 lines
316 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 \
2018-01-27 14:13:59 +01:00
-v /srv/mariadb/conf:/etc/mysql \
-v /srv/mariadb/data:/var/lib/mysql \
mariadb
2018-01-19 15:50:15 +01:00
}
stop() {
2018-01-19 16:02:41 +01:00
/usr/bin/docker stop mariadb
2018-01-19 15:50:15 +01:00
}