Commit 456fc175 authored by Mike Hibler's avatar Mike Hibler

When manually restarting mountd on fs/ops, be prepared for failure.

At some point in time, the preceding call to /etc/rc.d/nfsd starting firing
up mountd as well. So the explict /etc/rc.d/mountd call just after may fail.
parent a31e0abd
......@@ -1045,7 +1045,10 @@ sub SetupFsNode()
# issue. Note that when elabinelab setup finishes, boss and ops
# will be rebooted and we will again be bound to port 900.
#
mysystem("mountd -r");
# XXX: nfsd start above may have already started mountd, so don't
# fail if this mountd restart fails!
#
system("mountd -r");
} else {
# XXX FBSD4 is such a pain...
mysystem("nfsd -u -t -n 8");
......@@ -1593,7 +1596,10 @@ sub SetupOpsNode($)
# issue. Note that when elabinelab setup finishes, boss and ops
# will be rebooted and we will again be bound to port 900.
#
mysystem("mountd -r");
# XXX: nfsd start above may have already started mountd, so don't
# fail if this mountd restart fails!
#
system("mountd -r");
mysystem("/etc/rc.d/sendmail start");
} else {
# XXX FBSD4 is such a pain...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment