Restart node processes if journald crashes

Note that we cannot simply ignore EPIPE in the node programs.
Doing so results in no logs anymore :-( This is supposedly
fixed in systemd 228.

Fixes #550
This commit is contained in:
Girish Ramakrishnan
2016-01-21 22:13:19 -08:00
parent 1e1249d8e0
commit bb88fa3620
2 changed files with 4 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
Description=Cloudron Admin
OnFailure=crashnotifier@%n.service
StopWhenUnneeded=true
; journald crashes result in a EPIPE in node. Cannot ignore it as it results in loss of logs.
BindsTo=systemd-journald.service
[Service]
Type=idle