From d5dea32e114e0750a93fa1b25a2cf229bf4efd33 Mon Sep 17 00:00:00 2001 From: Tonny Date: Fri, 5 Oct 2018 20:03:22 -0700 Subject: [PATCH] [Enhancement] Delete bootstrap-socket once ghost is stopped --- extensions/systemd/systemd.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extensions/systemd/systemd.js b/extensions/systemd/systemd.js index 0f12b9a23..4818f4fc0 100644 --- a/extensions/systemd/systemd.js +++ b/extensions/systemd/systemd.js @@ -35,6 +35,10 @@ class SystemdProcessManager extends ProcessManager { }) .then(() => this.ui.sudo(`systemctl start ${this.systemdName}`)) .then(() => this.ensureStarted({logSuggestion, socketAddress})) + .then(() => { + this.instance.config.set('bootstrap-socket', null); + return this.instance.config.save(); + }) .catch((error) => { if (error instanceof CliError) { throw error; @@ -70,6 +74,10 @@ class SystemdProcessManager extends ProcessManager { }) .then(() => this.ui.sudo(`systemctl restart ${this.systemdName}`)) .then(() => this.ensureStarted({logSuggestion, socketAddress})) + .then(() => { + this.instance.config.set('bootstrap-socket', null); + return this.instance.config.save(); + }) .catch((error) => { if (error instanceof CliError) { throw error;