Problem when I start nodebb service on Ubuntu 16.04:
● nodebb.service - NodeBB forum
Loaded: loaded (/lib/systemd/system/nodebb.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Wed 2017-10-11 07:52:51 UTC; 7s ago
Docs: http://nodebb.readthedocs.io/en/latest/
Process: 22403 ExecStart=/usr/bin/node /home/ubuntu/nodebb/loader.js –no-daemon –no-silent (code=exited, status=217/USER)
Main PID: 22403 (code=exited, status=217/USER)
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: nodebb.service: Service hold-off time over, scheduling restart.
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: Stopped NodeBB forum.
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: nodebb.service: Start request repeated too quickly.
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: Failed to start NodeBB forum.
Here is my nodebb.service file:
[Unit]
Description=NodeBB forum
Documentation=http://nodebb.readthedocs.io/en/latest/
After=system.slice multi-user.target
[Service]
Type=simple
User=nodebb
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodebb
Environment=NODE_ENV=production
WorkingDirectory=/home/ubuntu/nodebb
ExecStart=/usr/bin/node /home/ubuntu/nodebb/loader.js –no-daemon –no-silent
Restart=always
[Install]
WantedBy=multi-user.target