So we have a bunch of old (like 2 years) Ubuntu 14.04 servers running production application, which has an API endpoint in Node.
But we have no idea how to start/stop/restart node on it.. it just comes up when we reboot the machine 🙂
I have tried popular answers like pm2, forever, systemd, and StrongLoop – none seem to be used to start node.
I also looked at /etc/init and init.d, and cant find anything that looks like it.
Any suggestions how to find it?
The Original author of the application is long gone…
The only other clue I have is
When I go to that directoy, I found 2 files:
Also I know the app.js has app.listen(8080), so I doubt this is done by apache/nginx, but I don’t know enough about node+web server setups to know…
For a time, before Ubuntu finally gave up on upstart and switched to systemd, it was popular to use supervisor to start Node (and some who follow obsolete Internet tutorials still attempt to use it). Run
supervisorctl and it will show the status of any applications it manages.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.