diff --git a/HowtoMySQL/Replication.md b/HowtoMySQL/Replication.md index 0ae9de86..3cce040f 100644 --- a/HowtoMySQL/Replication.md +++ b/HowtoMySQL/Replication.md @@ -245,12 +245,13 @@ Le mettre dans une unité systemd `/etc/systemd/system/pt-heartbeat.service` : ~~~ [Unit] Description=Check slave lag. -After=network.target +After=network.target mysql.service [Service] User=percona ExecStart=/usr/bin/pt-heartbeat --defaults-file /home/percona/.my.cnf --create-table --database percona --table heartbeat --update Type=simple +Restart=always [Install] WantedBy=default.target