Skip to content

Commit

Permalink
fix(systemd): delete bootstrap-socket config once ghost is started (#837
Browse files Browse the repository at this point in the history
)

closes #805
  • Loading branch information
tonnyorg authored and acburdine committed Oct 22, 2019
1 parent a3e091c commit 892b399
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extensions/systemd/systemd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 892b399

Please sign in to comment.