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 ?