|
From: | frwa onto |
Subject: | Re: YAJSW wrapper service monitor |
Date: | Fri, 4 Sep 2015 23:50:50 +0800 |
Sorry for a dumb question maybe: Is there a slash („/„) missing in front of „usr/local…“?
Tino
> --> Am 04.09.2015 um 17:01 schrieb frwa onto <address@hidden>:
>
> 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 ?
>
>
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |