Skip to content

Commit

Permalink
fix(systemd): ensure isRunning accounts for activating status as well
Browse files Browse the repository at this point in the history
no issue
- if Ghost hasn't quite started yet (or didn't start due to an error) then systemd will be in the "activating" state
  • Loading branch information
acburdine committed Jul 6, 2017
1 parent 85d40c6 commit 0f20c6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/systemd/systemd.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class SystemdProcessManager extends cli.ProcessManager {
return true;
} catch (e) {
// Systemd prints out "inactive" if service isn't running
if (!e.message.match(/inactive/)) {
// or "activating" if service hasn't completely started yet
if (!e.message.match(/inactive|activating/)) {
throw e;
}

Expand Down

0 comments on commit 0f20c6f

Please sign in to comment.