Explicitly state root as user to ensure that HOME is set

This commit is contained in:
Philip Trauner 2018-04-09 21:52:00 +02:00
parent 5cde811354
commit 2637bbd53f

View file

@ -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