Monit check process launched java process abnormality

Issue #720 closed
Former user created an issue

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)

  1. Tildeslash repo owner

    Does your startup script depend on some environment variable? You can add "env" to the startup.sh to check the variables.

  2. Massimo Sala

    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'"
    
  3. Log in to comment