1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
This commit is contained in:
ericgaspar 2021-05-30 09:34:35 +02:00
parent d00bb791a7
commit 17a711c23b
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 6 deletions

View file

@ -6,17 +6,16 @@ After=system.slice multi-user.target mongod.service
[Service] [Service]
Type=forking Type=forking
User=__APP__ User=__APP__
Group=__APP__
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodebb
Environment=NODE_ENV=production Environment=NODE_ENV=production
WorkingDirectory=__FINALPATH__ WorkingDirectory=__FINALPATH__
PIDFile=__FINALPATH__/pidfile PIDFile=__FINALPATH__/pidfile
Environment="__YNH_NODE_LOAD_PATH__" Environment="__YNH_NODE_LOAD_PATH__"
ExecStart=__FINALPATH__/loader.js ExecStart=__FINALPATH__/loader.js
Restart=always Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodebb
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -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="__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_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 # CONFIGURE SERVER.JS