Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Fix systemd on reboot #1012

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ Edit `orchestrator.conf.json` to match the above as follows:
"MySQLOrchestratorPassword": "orch_backend_password",
...

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


#### 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
Expand Down
3 changes: 3 additions & 0 deletions etc/systemd/orchestrator.service
Original file line number Diff line number Diff line change
Expand Up @@ -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