By default Monika will run in the foreground. Like other Node.js applications, there are several ways to run Monika in the background on Unix, Linux, and macOS.
On your terminal, run
nohup monika &
You'll get an output similar to the following.
In the above example, 93457 is the process ID (pid). And the output of Monika is written to
To stop Monika, run
kill -9 <pid>.
On Debian/Ubuntu, you can install it by running
sudo apt install screen.
monika -c monika.json
Press Ctrl+a then D. This will cause Monika to run on a different screen in the background.
To go back to the screen, run
screen -ls to list the running screens. You will get an output similar to the following.
9049.pts-0.the-server is the name of the screen.
screen -r <name_of_the_screen>.
To stop Monika, hit CTRL+C and then CTRL+D to exit/terminate Screen.
PT Artha Rajamas Mandiri (Hyperjump) is an open-source-first company providing engineering excellence service. We aim to build and commercialize open-source tools to help companies streamline, simplify, and secure the most important aspects of its modern DevOps practices.
Copyright © 2021 Hyperjump Tech. All Rights Reserved.