Hi, you can use the pattern based process check (doesn't require the pidfile), for example: --8<-- check process pager matching "/sbin/dynamic_pager -F /private/var/vm/swapfile" --8<--
The start/stop script can be shell scripts if you'll wrap it like this: --8<-- start program = "/bin/bash -c '...myscript...'" --8<-- => you can start the programs in the background via the script. Regards, Martin On Mar 26, 2013, at 9:56 AM, Hans Ahrens - Prowise <[email protected]> wrote: > Hi All, > > For our server i am trying to monitor/auto restart 2 programs. > These are : > > -A PHP Script running socketo.me, At the moment we start this with the > following command : nohup php socketo.php, This script listens to port 80 for > incoming connections. > > -An instance of Libre Office running headless. We start this via : soffice > -headless -accept="socket,host=127.0.0.1,port=2002;urp;" -nofirststartwizard > > Now the problem is both of these programs do have a port they listen on ports > for connections but they both don't have a PID File or service start/stop > file. > > Is there a way that Monit kan monitor these services or do they require a > PID/Service File for Monit to work ? > > Regrads, > Hans > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
