From 63639f5a4319a2ddcf1a4eeef16921a151ce17e9 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Tue, 1 May 2018 14:05:14 +0200 Subject: [PATCH] Update systemd.service --- conf/systemd.service | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 39dc46d..1049760 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -2,11 +2,14 @@ Description=The Lounge IRC client After=__APP__.service -[Service] Type=simple -ExecStart=/usr/bin/thelounge start --home /home/yunohost.app/__APP__/ User=__APP__ Group=__APP__ +WorkingDirectory=__FINALPATH__ +ExecStartPre=__NODEJS__ +Environment="PATH=__ENV_PATH__" +ExecStart=__NODE__ index.js start --home /home/yunohost.app/__APP__/ +Restart=always Restart=on-failure RestartSec=5 StartLimitInterval=60s