Received: (at submit) by bugs.debian.org; 6 Jun 1999 10:50:31 +0000 Received: (qmail 14352 invoked from network); 6 Jun 1999 10:50:30 -0000 Received: from fuego.dat.etsit.upm.es (qmailr@138.100.17.15) by master.debian.org with SMTP; 6 Jun 1999 10:50:30 -0000 Received: (qmail 953 invoked by uid 1013); 6 Jun 1999 10:50:26 -0000 Date: Sun, 6 Jun 1999 12:50:25 +0200 (CET) From: Javier Fernandez-Sanguino Pen~a To: Bug submitter Subject: Allow persitent behavior when handling NFS mounting Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1686769425-2096460087-928666225=:945" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --1686769425-2096460087-928666225=:945 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Package: sysvinit Version: 2.76-3 Priority: wishlist =09I have some machines that have /home mounted by NFS, and sometimes they get rebooted (both server and clients) ath the same time (maybe electric failure, although its not too common). The problem is since server has higher load than clients, clients startup the nfs mount script before the server has launched any daemon (a race condition). =09I do not want the clients to boot if this happens, so I have fiddled around with the /etc/init.d/mountnfs.sh script, and added some nice things (I hope I have done it right, at least it seems it works) to handle "persistent" behavior. =09I have attached the resulting script to this mail for your consideration on including it in the scripts provided by your package (possibly with the variable that affects this behavior set to 'no' but thus allowing anyone to set it to yes if they are in dire need of it :) =09Regards =09Javier Fernandez-Sanguino Pe=F1a =09Debian developer =09jfs@computer.org --1686769425-2096460087-928666225=:945 Content-Type: TEXT/x-sh; name="mountnfs.sh" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: New persistend mount client Iw0KIyBtb3VudG5mcy5zaAlOb3cgdGhhdCBUQ1AvSVAgaXMgY29uZmlndXJl ZCwgbW91bnQgdGhlIE5GUyBmaWxlDQojCQlzeXN0ZW1zIGluIC9ldGMvZnN0 YWIgaWYgbmVlZGVkLiBJZiBwb3NzaW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b3J0bWFwPXllcw0KCQkJCTs7DQoJCWVzYWMNCglmaQ0KZG9uZQ0KDQpleGVj IDA+JjENCg0KaWYgWyAiJHBvcnRtYXAiID0geWVzIF0NCnRoZW4NCglpZiBb IC14IC9zYmluL3BvcnRtYXAgXQ0KCXRoZW4NCgkJZWNobyAtbiAiU3RhcnRp bmcgcG9ydG1hcHBlci4uLiAiDQoJCXN0YXJ0LXN0b3AtZGFlbW9uIC0tc3Rh cnQgLS1xdWlldCAtLWV4ZWMgL3NiaW4vcG9ydG1hcA0KCQlzbGVlcCAyDQoJ ZmkNCmZpDQoNCmlmIFsgIiRtb3VudF9uZnMiID0geWVzIF0NCnRoZW4NCgll Y2hvICJNb3VudGluZyByZW1vdGUgZmlsZXN5c3RlbXMuLi4iDQoJaWYgWyAi JGFsd2F5c21vdW50IiA9IHllcyBdOyB0aGVuDQogICAgICAgICAgICAgICAg d2hpbGUgISBtb3VudCAtYSAtdCBuZnM7IGRvIA0KICAgICAgICAgICAgICAg ICAgICAgICAgZWNobyAtZSAkbXNnZmFpbA0KICAgICAgICAgICAgICAgICAg ICAgICAgc2xlZXAgJHJldHJ5dGltZTsNCiAgICAgICAgICAgICAgICBkb25l DQogICAgICAgIGVsc2UNCiAgICAgICAgICAgICAgICBtb3VudCAtYSAtdCBu ZnMNCiAgICAgICAgZmkNCmZpDQoNCikgPCAvZXRjL2ZzdGFiDQoNCg== --1686769425-2096460087-928666225=:945--