How to find out how node web server is started on our server?

by Carmageddon   Last Updated September 14, 2018 16:00 PM

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 /etc/apache2/conf-available/javascript-common.conf Which contains

Alias /javascript /usr/share/javascript/

<Directory "/usr/share/javascript/">
    Options FollowSymLinks MultiViews

When I go to that directoy, I found 2 files: /usr/share/javascript/node-uuid/uuid.js and I suppose same .min.js file, seems to be library to generate UUIDs, and I dont see any references to our application...

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...

 ls -alR /etc/apache2/
total 12
drwxr-xr-x   3 root root 4096 Apr  4  2017 .
drwxr-xr-x 104 root root 4096 Sep 14 11:41 ..
drwxr-xr-x   2 root root 4096 Sep 14 11:48 conf-available

total 12
drwxr-xr-x 2 root root 4096 Sep 14 11:48 .
drwxr-xr-x 3 root root 4096 Apr  4  2017 ..
-rw-r--r-- 1 root root  127 Aug 11  2013 javascript-common.conf

Related Questions

Can't find whats starting/restarting process on ubuntu

Updated December 12, 2017 22:00 PM

What is starting the node.js and how to turn it off?

Updated December 18, 2017 22:00 PM