[Pkg-sysvinit-devel] Bug#390404: initscripts: /etc/network/if-up.d/mountnfs does not mount nfs directory at boot time

Wolf Wiegand wolf at kondancemilch.de
Sat Oct 7 23:04:06 UTC 2006


Hi,

I had the same problem as Chaogui - nfs shares would not be mounted
because /var/run/network/mountnfs existed. Will there be problems if 

mkdir /var/run/network/mountnfs 2>/dev/null || exit 0

is changed to

mkdir -p /var/run/network/mountnfs 2>/dev/null || exit 0

? In any case, if the scripts exits and does not mount shares due to an
error, it should not exit with 0 (or is this required by anything?) and
should print out a short description why it exited (for example "Lock
directory /var/run/network/mountnfs already exists. This should not
happen, exiting.").

Cheers,

Wolf
-- 
Büroschimpfwort des Tages: Beamtenschreck - Bewegungsmelder in Büros. (Norbert 
Gülk)




More information about the Pkg-sysvinit-devel mailing list