[Linux-cluster] Resource Script.
Lon Hohberger
lhh at redhat.com
Wed Apr 25 14:48:43 UTC 2007
On Tue, Apr 24, 2007 at 12:43:03PM +0300, Patrick Gharios wrote:
> Hello,
> Question:
>
> In order to run a script (bash script on a screen for example) by the
> cluster service, do I need to include a start argument when calling the
> execution of that script? I am trying to execute a simple script but I
> noticed in /var/log/messages that the cluster is trying to send a 'start'
> argument to the script , the script is not being fired up on the node and
> then a 'status' call is executed on the simple script. Seems like it's a
> monitoring feature.
>
> In in all, can someone tell me how can I execute a simple bash script on the
> cluster service?
Like, a one-time thing?
Just add an argument handler at the beginning:
case $1 in
start)
;;
*)
exit 0
esac
--
Lon Hohberger - Software Engineer - Red Hat, Inc.
More information about the Linux-cluster
mailing list