From 78ed4c9c74831fe2ee27513dc7782e036b0dd858 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 8 Jul 2017 17:49:33 +0200 Subject: [PATCH] Update nodebb.service --- conf/nodebb.service | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/conf/nodebb.service b/conf/nodebb.service index a006eae..80dba19 100644 --- a/conf/nodebb.service +++ b/conf/nodebb.service @@ -1,19 +1,16 @@ [Unit] Description=NodeBB forum for Node.js. -Documentation=https://docs.nodebb.org -After=system.slice multi-user.target +After=network.target + [Service] Type=simple -User=root - -StandardOutput=syslog -StandardError=syslog -SyslogIdentifier=nodebb - -Environment=NODE_ENV=production -WorkingDirectory=/var/www/nodebb -ExecStart=/var/www/nodebb/nodebb --no-silent --no-daemon +User=__APP__ +Group=__APP__ +WorkingDirectory=__FINALPATH__ +ExecStartPre=__NODEJS__ +Environment="PATH=__ENV_PATH__" +ExecStart=__NODE__ loader.js --no-daemon --no-silent Restart=always [Install]