From 2637bbd53fdb78aa100e28d92c3979818cdf8ce3 Mon Sep 17 00:00:00 2001 From: Philip Trauner Date: Mon, 9 Apr 2018 21:52:00 +0200 Subject: [PATCH] Explicitly state root as user to ensure that HOME is set --- root-fs/etc/systemd/system/harrogate.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/root-fs/etc/systemd/system/harrogate.service b/root-fs/etc/systemd/system/harrogate.service index 889c599..34a296c 100644 --- a/root-fs/etc/systemd/system/harrogate.service +++ b/root-fs/etc/systemd/system/harrogate.service @@ -4,7 +4,10 @@ After=multi-user.target [Service] ExecStart=/usr/bin/node /var/0s/source/harrogate/server.js WorkingDirectory=/var/0s/source/harrogate - +# Explicitly state root as user to ensure that HOME is set +User=root +Restart=always +RestartSec=3 [Install] WantedBy=multi-user.target