From eee706b4bb3e98ceadd5192cdd4141a1ec4b0358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Inderm=C3=BChle?= Date: Thu, 7 Nov 2019 10:01:58 +0100 Subject: [PATCH 1/3] Add Install section in systemd unit file to allow 'enable' command to create the appropriate symlink --- etc/systemd/orchestrator.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/systemd/orchestrator.service b/etc/systemd/orchestrator.service index 390d0a207..16f33fe2e 100644 --- a/etc/systemd/orchestrator.service +++ b/etc/systemd/orchestrator.service @@ -9,3 +9,6 @@ WorkingDirectory=/usr/local/orchestrator ExecStart=/usr/local/orchestrator/orchestrator http EnvironmentFile=-/etc/sysconfig/orchestrator ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target From dd0f447e91eeb9870104aba29744a384df1ee93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Inderm=C3=BChle?= Date: Thu, 7 Nov 2019 10:02:15 +0100 Subject: [PATCH 2/3] Doc : install with MySQL backend, explain how to add 'After=mysqld.service' in systemd unit file --- docs/install.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/install.md b/docs/install.md index ddbcf7245..ee30735b7 100644 --- a/docs/install.md +++ b/docs/install.md @@ -57,6 +57,11 @@ Edit `orchestrator.conf.json` to match the above as follows: "MySQLOrchestratorPassword": "orch_backend_password", ... +On systemd, ensure that Orchestrator starts after your backend is loaded. Edit `/etc/systemd/system/orchestrator.service` and add `mysqld.service` in the [Unit] section: + + [Unit] + After=syslog.target network.target mysqld.service + #### Grant access to orchestrator on all your MySQL servers For `orchestrator` to detect your replication topologies, it must also have an account on each and every topology. At this stage this has to be the From a3207715aae12a368ec3584a4c90e7b5fee8bb4b Mon Sep 17 00:00:00 2001 From: Honiix Date: Thu, 5 Dec 2019 07:40:44 +0100 Subject: [PATCH 3/3] Update docs/install.md Explain that the chapter is only for MySQL Backend as opposed to SQLite Co-Authored-By: Shlomi Noach --- docs/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.md b/docs/install.md index ee30735b7..c7f1d1bda 100644 --- a/docs/install.md +++ b/docs/install.md @@ -57,7 +57,7 @@ Edit `orchestrator.conf.json` to match the above as follows: "MySQLOrchestratorPassword": "orch_backend_password", ... -On systemd, ensure that Orchestrator starts after your backend is loaded. Edit `/etc/systemd/system/orchestrator.service` and add `mysqld.service` in the [Unit] section: +On systemd, and assuming your `orchestrator` config uses a MySQL backend (as opposed to SQLite), ensure that Orchestrator starts after your backend is loaded. Edit `/etc/systemd/system/orchestrator.service` and add `mysqld.service` in the [Unit] section: [Unit] After=syslog.target network.target mysqld.service