-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd enable/disable behaviour #248
Labels
Comments
ErisDS
added a commit
to ErisDS/Ghost-CLI
that referenced
this issue
Jun 28, 2017
refs TryGhost#216, TryGhost#248 - add an extra step to enable systemd on setup - this is what tells systemd to start the service on server restart - Update the template to contain docs link
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jul 3, 2017
closes TryGhost#248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
2 tasks
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jul 3, 2017
closes TryGhost#248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jul 3, 2017
closes TryGhost#248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jul 3, 2017
closes TryGhost#248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jul 3, 2017
closes TryGhost#248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
acburdine
added a commit
to acburdine/Ghost-CLI
that referenced
this issue
Jul 3, 2017
closes TryGhost#248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
acburdine
added a commit
that referenced
this issue
Jul 3, 2017
closes #248 - add isEnabled, enable, disable methods to process manager - add support for enable/disable to start and stop commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to fully setup Ghost with systemd, we need to call
systemctl enable <servicename>
.Short term, we're going to do this as part of setup, just to get the call in to the codebase.
Longer term, we need a slightly more elegant solution.
The problem with enabling during setup, is that if the user chooses not to start Ghost, it will be started if the server is then restarted. This is a bit odd.
Instead, we need some more elegant logic to handle calling enable on the first start, if enable has not already been called.
The suggested logic is:
--enable
option toghost start
and a--disable
option toghost stop
ghost start
--enable
is not passed, prompt the user and ask if they want to enable--enable
is passed (edited)--disable
is passed (edited)stop --disable
part is for people who are stopping a blog but not uninstalling itThe text was updated successfully, but these errors were encountered: