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

Commit

Permalink
Merge pull request #1012 from Honiix/fix-systemd-on-reboot
Browse files Browse the repository at this point in the history
Fix systemd on reboot
  • Loading branch information
Shlomi Noach authored Dec 5, 2019
2 parents e60a626 + c62c2c5 commit 7831d7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 7831d7e

Please sign in to comment.