mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
mariadb: Implement health-checks and ready notify
This integrates systemd ready notifications against native support available in MariaDB, and integrates health-checks for good measure.
This commit is contained in:
parent
b3b2840c37
commit
bb5482ed6d
@ -9,9 +9,10 @@ NotifyAccess=all
|
|||||||
SyslogIdentifier=%N
|
SyslogIdentifier=%N
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
Environment=PODMAN_SYSTEMD_UNIT=%n
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
ExecStart=/bin/podman run --replace --name %N --net internal --sdnotify=conmon \
|
ExecStart=/bin/podman run --replace --name %N --net internal \
|
||||||
--env-file %E/coreos-home-server/%N/%N.env \
|
--env-file %E/coreos-home-server/%N/%N.env \
|
||||||
--volume %N:/var/lib/mysql:z \
|
--volume %N:/var/lib/mysql:z \
|
||||||
|
--health-cmd 'mariadb-admin -uroot -p$MYSQL_ROOT_PASSWORD ping' \
|
||||||
localhost/%N:latest
|
localhost/%N:latest
|
||||||
ExecStop=/bin/podman stop --ignore --time 10 %N
|
ExecStop=/bin/podman stop --ignore --time 10 %N
|
||||||
ExecStopPost=/bin/podman rm --ignore --force %N
|
ExecStopPost=/bin/podman rm --ignore --force %N
|
||||||
|
Loading…
Reference in New Issue
Block a user