public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: "Ryan O'Hara" <rohara@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: RHEL5 - ip.sh: add sleeptime parameter Date: Fri, 01 Aug 2008 21:54:00 -0000 [thread overview] Message-ID: <20080801201536.F0DD1A8256@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3f70f30c69a229caaeed037306eb12b1ad6bd9b1 Commit: 3f70f30c69a229caaeed037306eb12b1ad6bd9b1 Parent: 4bb7b3ff842ac40a3705d82e74f266b64f8e7609 Author: Ryan O'Hara <rohara@redhat.com> AuthorDate: Fri Aug 1 15:14:15 2008 -0500 Committer: Ryan O'Hara <rohara@redhat.com> CommitterDate: Fri Aug 1 15:14:15 2008 -0500 ip.sh: add sleeptime parameter Allow user to specify amount of time to sleep after removing and IP address ('stop' command). The sleeptime parameter is specified in number of seconds. Default is 10 seconds. Setting sleeptime to zero will result in no sleep. --- rgmanager/src/resources/ip.sh | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/rgmanager/src/resources/ip.sh b/rgmanager/src/resources/ip.sh index b827b27..e31d8ef 100755 --- a/rgmanager/src/resources/ip.sh +++ b/rgmanager/src/resources/ip.sh @@ -110,6 +110,17 @@ meta_data() <content type="boolean"/> </parameter> + <parameter name="sleeptime"> + <longdesc lang="en"> + Amount of time to sleep after removing an IP address. + Value is specified in seconds. Default value is 10. + </longdesc> + <shortdesc lang="en"> + Amount of time (seconds) to sleep. + </shortdesc> + <content type="string"/> + </parameter> + </parameters> <actions> @@ -916,7 +927,13 @@ stop) # XXX Let nfsd/lockd clear their queues; we hope to have a # way to enforce this in the future - sleep 10 + if [ -z "$OCF_RESKEY_sleeptime" ]; then + sleep 10 + else + if [ "$OCF_RESKEY_sleeptime" -gt "0" ]; then + sleep $OCF_RESKEY_sleeptime + fi + fi else ocf_log debug "${OCF_RESKEY_address} is not configured" fi
reply other threads:[~2008-08-01 20:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080801201536.F0DD1A8256@lists.fedorahosted.org \ --to=rohara@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).