Skip to content

Commit 0f20c6f

Browse files
committed
fix(systemd): ensure isRunning accounts for activating status as well
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
1 parent 85d40c6 commit 0f20c6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/systemd/systemd.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class SystemdProcessManager extends cli.ProcessManager {
7272
return true;
7373
} catch (e) {
7474
// Systemd prints out "inactive" if service isn't running
75-
if (!e.message.match(/inactive/)) {
75+
// or "activating" if service hasn't completely started yet
76+
if (!e.message.match(/inactive|activating/)) {
7677
throw e;
7778
}
7879

0 commit comments

Comments
 (0)