monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monit NOT starting for no reason


From: Support Team
Subject: Monit NOT starting for no reason
Date: Tue, 9 Jul 2019 08:28:10 +1200

Configuration:

 check process jpagerenderer with pidfile /opt/deployment/services/JPageRenderer/jetty.pid
   start program = "/bin/bash -c 'cd /opt/deployment/services/JPageRenderer/ && ./service_monit_start.sh'" with timeout 90 seconds
   stop program = "/bin/bash -c 'cd /opt/deployment/services/JPageRenderer/ && ./service_monit_stop.sh'"
   if failed host pagerasterizer.safetyhandler.com port 80 protocol http request "/" for 2 cycles then restart

What user does monit start the service at?

Why does NOTHING happen?

service_monit_start.sh is:

#!/bin/bash

echo "Starting PageRasterizer service..."
./service_runner.sh > /opt/deployment/services/JPageRenderer/log.txt 2>&1 & disown
echo $! > /opt/deployment/services/JPageRenderer/jetty.pid

service_runner.sh:
export DISPLAY=:0

java -Xmx768m -cp jetty-all-9.4.5.v20170502-uber.jar:json-simple-1.1.jar:. JPageRendererService

Any ideas? Was saying failed to start (exit status 0) a few times.

Why can't monit log stderr and stdout so I can see why this isn't working?

--

"Coming together is a beginning; keeping together is progress; working together is success."

Henry Ford

                                                                                           



The information contained in this email message may contain confidential or privileged information.  It is intended only for the individual or company named above.  If you are not the intended recipient, you are hereby notified that any use, review, dissemination, distribution or copying of this email message is strictly prohibited.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]