dataset/seed/mariadb-client/templates/mariadbclient.service

8 lines
235 B
SYSTEMD
Raw Normal View History

2022-04-28 21:48:16 +02:00
[Unit]
Description=Waiting for mariadb server
Before=network.target
[Service]
Type=oneshot
2022-06-24 19:00:16 +02:00
ExecStart=/usr/bin/timeout 90 bash -c 'while ! 3<> /dev/tcp/%%mariadb_client_server_domainname/3306; do sleep 1; done; echo "MARIADB STARTED"'