From 17a711c23beeab80b02027b9c31d68e20b278da4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 30 May 2021 09:34:35 +0200 Subject: [PATCH] Fix --- conf/systemd.service | 9 ++++----- scripts/install | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 11aba46..4bd511a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,17 +6,16 @@ After=system.slice multi-user.target mongod.service [Service] Type=forking User=__APP__ - -StandardOutput=syslog -StandardError=syslog -SyslogIdentifier=nodebb - +Group=__APP__ Environment=NODE_ENV=production WorkingDirectory=__FINALPATH__ PIDFile=__FINALPATH__/pidfile Environment="__YNH_NODE_LOAD_PATH__" ExecStart=__FINALPATH__/loader.js Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=nodebb [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index 150c36f..d7cec20 100644 --- a/scripts/install +++ b/scripts/install @@ -131,7 +131,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1 #ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" #ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service" -ynh_add_systemd_config --others_var="ynh_node_load_PATH" +ynh_add_systemd_config #================================================= # CONFIGURE SERVER.JS