How you running NodeBB ?
-
i use init script on ubuntu to start on boot. and use that to stop and restart, reload, etc
-
@Giggiux I did try it out after posting and it seems that systemd can keep track of a running process' pid to know how to stop it... I don't know if it's the cleanest way but it works, since the loader pays attention to the SIGINT signal
-
If anyone comes across this topic again, I've created my own version of the systemd service file for NodeBB. It's really nice to have especially in scenarios where your VPS gets shut down for whatever reason; all you have to do is start the VM back up.
Service file for running NodeBB with systemd. Drop or symlink into the /etc/systemd/system/ folder. This version uses node versions provided by nvm.
Service file for running NodeBB with systemd. Drop or symlink into the /etc/systemd/system/ folder. This version uses node versions provided by nvm. - nodebb.service
Gist (gist.github.com)