Skip to content

Commit

Permalink
[Enhancement] Delete bootstrap-socket once ghost is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
tonnyorg committed Oct 6, 2018
1 parent 57f0614 commit d5dea32
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 d5dea32

Please sign in to comment.