1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

[Fix] NodeBB service error (#4)

* [Fix] NodeBB service error

* Update install
This commit is contained in:
frju365 2017-06-27 19:57:37 +02:00 committed by GitHub
parent 6016faf869
commit 5f4f62461e
2 changed files with 4 additions and 4 deletions

View file

@ -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]

View file

@ -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