Hi,
Thanks for the answer. But it raises one more question:
" Need to modify the script to start the program in background. "
Does this mean monit will monitor the background process created by both
ways:-
1. Adding an `&` while starting node server
2. By doing a manual double fork on process
Thanks
---- On Wed, 05 Jun 2019 02:02:02 +0530 <mailto:[email protected]> wrote
----
Hi,
monit doesn't support foreground processes - you need to modify the script to
start the program in background.
Best regards,
Martin
On 3 Jun 2019, at 07:56, Yogesh Jangra <mailto:[email protected]>
wrote:
Hi all,
I am trying to monitor a node js app using monit. The node server is
getting started using a script which starts the server as an foreground
process. but it results in specified error :-
failed to start (exit status -1) -- Program 'start_script.sh 8881'
timed out after 30 s
1. Does monit `check process` expect an exit status as start_script
output ?
2. Does monit support monitoring the foreground run processes, if yes,
kindly give an example
Thanks
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general