diff --git a/node-daemon/pvcnoded/util/services.py b/node-daemon/pvcnoded/util/services.py index ac63b625..ede2c237 100644 --- a/node-daemon/pvcnoded/util/services.py +++ b/node-daemon/pvcnoded/util/services.py @@ -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")