Add KeyDB to node startup services
Also ensure API worker starts on all nodes, not just coordinators.
This commit is contained in:
parent
42ed6f6420
commit
2c15036f86
|
@ -69,8 +69,15 @@ def start_ceph_mgr(logger, config):
|
|||
)
|
||||
|
||||
|
||||
def start_api_worker(logger, config):
|
||||
def start_keydb(logger, config):
|
||||
if config["enable_api"] and config["daemon_mode"] == "coordinator":
|
||||
logger.out("Starting KeyDB daemon", state="i")
|
||||
# TODO: Move our handling out of Systemd and integrate it directly as a subprocess?
|
||||
common.run_os_command("systemctl start keydb-server.service")
|
||||
|
||||
|
||||
def start_api_worker(logger, config):
|
||||
if config["enable_api"]:
|
||||
logger.out("Starting API worker daemon", state="i")
|
||||
# TODO: Move our handling out of Systemd and integrate it directly as a subprocess?
|
||||
common.run_os_command("systemctl start pvcapid-worker.service")
|
||||
|
@ -83,6 +90,7 @@ def start_system_services(logger, config):
|
|||
start_frrouting(logger, config)
|
||||
start_ceph_mon(logger, config)
|
||||
start_ceph_mgr(logger, config)
|
||||
start_keydb(logger, config)
|
||||
start_api_worker(logger, config)
|
||||
|
||||
logger.out("Waiting 10 seconds for daemons to start", state="s")
|
||||
|
|
Loading…
Reference in New Issue