Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144586 Details for
Bug 221037
[RFE] [PATCH] Wait for NFS server(s) to boot
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
nfswait
nfswait (text/plain), 1.16 KB, created by
Pierre Ossman
on 2006-12-30 22:14:57 UTC
(
hide
)
Description:
nfswait
Filename:
MIME Type:
Creator:
Pierre Ossman
Created:
2006-12-30 22:14:57 UTC
Size:
1.16 KB
patch
obsolete
>#!/bin/bash ># ># nfswait Wait for NFS server to come up ># ># Authors: Pierre Ossman <drzeus@drzeus.cx> ># ># chkconfig: 345 24 76 ># description: Waits for a NFS server to come up so that mounts will not fail. > ># Source function library. >. /etc/rc.d/init.d/functions > ># Source networking configuration. >[ -f /etc/sysconfig/network ] || exit 0 > >. /etc/sysconfig/network > >RETRANS=120 >[ -f /etc/sysconfig/nfswait ] && . /etc/sysconfig/nfswait > ># Check that networking is up. >[ "${NETWORKING}" = "no" ] && exit 0 > >NFSSRVS=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $1 } ' /etc/fstab | sed 's/:.*$//' | sort | uniq` > >_wait_for_nfssrv() { > local start now > start=`date +%s` > while ! showmount $1 > /dev/null 2>&1; do > now=`date +%s` > if [ $[ $now - $start ] -gt 120 ]; then > return 1 > fi > sleep 1 > done > > return 0 >} > ># See how we were called. >case "$1" in > start) > for SRV in $NFSSRVS; do > action "Waiting for NFS server $SRV..." _wait_for_nfssrv $SRV > done > ;; > stop) > # Nothing to wait for when shutting down > ;; > restart) > $0 start > ;; > reload) > $0 start > ;; > *) > echo $"Usage: $0 {start|stop|restart|reload}" > exit 1 >esac > >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 221037
:
144586
|
154340