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] [Unit]
Description=NodeBB forum for Node.js. Description=NodeBB forum for Node.js.
Documentation=http://nodebb.readthedocs.io/en/latest/ Documentation=https://docs.nodebb.org
After=system.slice multi-user.target After=system.slice multi-user.target
[Service] [Service]
@ -13,8 +13,7 @@ SyslogIdentifier=nodebb
Environment=NODE_ENV=production Environment=NODE_ENV=production
WorkingDirectory=/var/www/nodebb WorkingDirectory=/var/www/nodebb
ExecStart=./nodebb start ExecStart=/var/www/nodebb/nodebb --no-silent --no-daemon
ExecStop=./nodebb stop
Restart=always Restart=always
[Install] [Install]

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -eu
#================================================= #=================================================
# GENERIC STARTING # GENERIC STARTING
#================================================= #=================================================
@ -8,7 +10,6 @@
source .fonctions source .fonctions
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
set -eu
#================================================= #=================================================
# MANAGE FAILURE OF THE SCRIPT # MANAGE FAILURE OF THE SCRIPT