Monit check process launched java process abnormality
Issue #720
closed
I have used monit to check process like this start program = "/bin/bash -l -c '/tomcat/bin/startup.sh'" as uid "xxx" and gid "xxx" but it cant genarate the java process monit pid in /tmp/hsperfdata_xxx/
I run the /bin/bash -l -c '/tomcat/bin/startup.sh' by shell manually, it will normal
Comments (3)
-
repo owner -
Are you sure about your start program ? To run tomcat as a specific user (say for example goofy), you should try something like
start program = "/sbin/runuser --login goofy -c 'cd /tomcat && /tomcat/bin/startup.sh'"
-
repo owner - changed status to closed
- Log in to comment
Does your startup script depend on some environment variable? You can add "env" to the startup.sh to check the variables.