Rename pvcapid-worker to pvcworkerd

This commit is contained in:
2023-11-15 19:13:48 -05:00
parent 5f1432ccdd
commit aef38639cf
8 changed files with 14 additions and 14 deletions

View File

@ -188,7 +188,7 @@ def entrypoint():
# Restart the API daemons if applicable
logger.out("Restarting services", state="s")
common.run_os_command("systemctl restart pvcapid-worker.service")
common.run_os_command("systemctl restart pvcworkerd.service")
if zkhandler.read("base.config.primary_node") == config["node_hostname"]:
common.run_os_command("systemctl restart pvcapid.service")

View File

@ -607,7 +607,7 @@ class NodeInstance(object):
patroni_failed = False
time.sleep(0.2)
break
# 6. Start client API (and provisioner worker)
# 6. Start client API
if self.config["enable_api"]:
self.logger.out("Starting PVC API client service", state="i")
common.run_os_command("systemctl enable pvcapid.service")

View File

@ -80,7 +80,7 @@ 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")
common.run_os_command("systemctl start pvcworkerd.service")
def start_system_services(logger, config):