How you running NodeBB ?
Solved
General Discussion
-
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.
https://gist.github.com/bdharrington7/2599927d41d30f11900f2099b8d8fc64
Copyright © 2024 NodeBB | Contributors