From 5f4f62461efb7eaf60a871970fd83f2099f7cfd0 Mon Sep 17 00:00:00 2001 From: frju365 Date: Tue, 27 Jun 2017 19:57:37 +0200 Subject: [PATCH] [Fix] NodeBB service error (#4) * [Fix] NodeBB service error * Update install --- conf/nodebb.service | 5 ++--- scripts/install | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/nodebb.service b/conf/nodebb.service index a8f3279..a006eae 100644 --- a/conf/nodebb.service +++ b/conf/nodebb.service @@ -1,6 +1,6 @@ [Unit] Description=NodeBB forum for Node.js. -Documentation=http://nodebb.readthedocs.io/en/latest/ +Documentation=https://docs.nodebb.org After=system.slice multi-user.target [Service] @@ -13,8 +13,7 @@ SyslogIdentifier=nodebb Environment=NODE_ENV=production WorkingDirectory=/var/www/nodebb -ExecStart=./nodebb start -ExecStop=./nodebb stop +ExecStart=/var/www/nodebb/nodebb --no-silent --no-daemon Restart=always [Install] diff --git a/scripts/install b/scripts/install index 37ecb94..3df7a58 100644 --- a/scripts/install +++ b/scripts/install @@ -1,5 +1,7 @@ #!/bin/bash +set -eu + #================================================= # GENERIC STARTING #================================================= @@ -8,7 +10,6 @@ source .fonctions source /usr/share/yunohost/helpers -set -eu #================================================= # MANAGE FAILURE OF THE SCRIPT