-
Notifications
You must be signed in to change notification settings - Fork 5
Running in the Background
Toby Lin edited this page Apr 20, 2022
·
12 revisions
You can use something like forever
or nodemon
to background and manage your node.js processes. The MITM server is written using node.js.
Firstly, install forever
with the -g
flag which will install it and make it accessible on the entire system:
npm install -g forever
Then to run a new process:
forever -l <full path of log file> start mitm.js <mitm options>
To show all running processes:
forever list
To stop a process, you can use the process index in the square brackets: [#]
or using the uid
value as well.
forever stop <index #/uid>