From 9e7f2425ea15512b75b7c575e9d4db80aca72646 Mon Sep 17 00:00:00 2001 From: jlecour Date: Wed, 13 Nov 2019 09:32:30 +0100 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20de=20l'unit=C3=A9=20systemd?= =?UTF-8?q?=20pour=20pt-heartbeat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL/Replication.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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