Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 443 Bytes
[Unit]
Description=Wait for MariaDB to be initialized, then update status in etcd
Requires=docker.service docker-mariadb-galera.service
Wants=network-online.target
After=docker.service docker-mariadb-galera.service network-online.target
[Service]
Type=simple
RemainAfterExit=true
ExecStartPre=/usr/bin/chmod +x /opt/bin/docker-mariadb-waiter.sh
ExecStart=/usr/bin/bash /opt/bin/docker-mariadb-waiter.sh
[Install]
WantedBy=multi-user.target