Hello,

I am in need a little help. I want to fire off a jar file only when
heartbeat takes over on that server. I figured the best method for this
would be creating a custom resource in /etc/ha.d/resource.d/.

But I'm not exactly sure what I should place in the file.

I figured something like:
#!/bin/sh


if [ $HOSTNAME = 'node1']
then
    /path_to_jar/app.jar node1
elif [ $HOSTNAME = 'node2' ]
then
    /path_to_jar/app.jar node2
elif [ $HOSTNAME = 'node3' ]
then
    /path_to_jar/app.jar node3
fi

But i know i have to do more then that. The jar file simple adjusts some
nat information in the networks primary firewall (since it was throwing a
fit with the virtual ip I also have floating between nodes) and then closes.

Any help would be great.
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to