On 09/15/2010 04:08 PM, Carlos Maiolino wrote: > On Wed, Sep 15, 2010 at 03:42:56PM +0200, Jakov Sosic wrote: >> Hi. >> >> >> I want to write few scripts for my company's services, and I don't know >> how to debug the scripts? >> > > Hi Jakov, > > Cluster uses system V model to manage scripts, so, it needs to have a start, stop and status arguments, where each argument can return 0 if ok or 1 if any error occurred. so, after that, you can use "script" as a resource agent and point cluster.conf to your custom script. > > About debug it, what do you exactly want to debug ? if it is working properly ? So, it should work if you manually run: service <your_script> <status> (status is one of the three above status). > > There is a document explaining how to set up these scripts, I'm trying to find it. I meant writing HA resource agent - like the ones that are in /usr/share/cluster.... Not the classic init scripts... -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================= | start fighting cancer -> http://www.worldcommunitygrid.org/ | -- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster