monit-general
[Top][All Lists]
Advanced

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

YAJSW wrapper service monitor


From: frwa onto
Subject: YAJSW wrapper service monitor
Date: Fri, 4 Sep 2015 23:01:37 +0800

Hi All,
         I have managed to run a java service using the this tool called YAJSW. In the bin folder for each service being managed you have a number of .sh files. Among them is startDaemon.sh to start my service and stopDaemon.sh to stop the service. I would like monit to monitor my service too just incase its down to restart. I notice in the /var/run I can see this file wrapper.service1.pid with pid in it. But in the top I can see just the command being stated as java.

My monit version is version 5.1.1 and when I run monit status I get this  monit status
monit: error connecting to the monit daemon but I have run it using 
service monit start
Starting monit:                                            [  OK  ]

 So I am trying to write this as the command to monitor it and here is my script which I edit the monit.conf. I dont see it functioning 

   check process service1 with pidfile /var/run/wrapper.service1.pid
         start program = "usr/local/yasjws/binService/startDaemon.sh start" 
         stop program  = "usr/local/yasjws/binService/sopDaemon.sh stop"
       if failed then restart

Any suggestion on this ?



reply via email to

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