From 4ce541e24a0e20fc60992cf72bc95eb3ac5ea3dc Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Tue, 1 May 2018 16:00:06 +0200 Subject: [PATCH] Update systemd.service --- conf/systemd.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index ec43ac0..27608aa 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -5,9 +5,10 @@ After=__APP__.service Type=simple User=__APP__ Group=__APP__ +WorkingDirectory=__FINALPATH__ ExecStartPre=__NODEJS__ Environment="PATH=__ENV_PATH__" -ExecStart=__FINALPATH__/index.js start --home /home/yunohost.app/__APP__/ +ExecStart=__NODE__ index.js start --home /home/yunohost.app/__APP__/ Restart=on-failure RestartSec=5 StartLimitInterval=60s