Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 7831d7e

Browse files
author
Shlomi Noach
authored
Merge pull request #1012 from Honiix/fix-systemd-on-reboot
Fix systemd on reboot
2 parents e60a626 + c62c2c5 commit 7831d7e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/install.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ Edit `orchestrator.conf.json` to match the above as follows:
5757
"MySQLOrchestratorPassword": "orch_backend_password",
5858
...
5959

60+
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:
61+
62+
[Unit]
63+
After=syslog.target network.target mysqld.service
64+
6065

6166
#### Grant access to orchestrator on all your MySQL servers
6267
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

etc/systemd/orchestrator.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ WorkingDirectory=/usr/local/orchestrator
99
ExecStart=/usr/local/orchestrator/orchestrator http
1010
EnvironmentFile=-/etc/sysconfig/orchestrator
1111
ExecReload=/bin/kill -HUP $MAINPID
12+
13+
[Install]
14+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)