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.
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
