Skip to contentSkip to conversation

touch /var/lock/subsys/autofs at startup

PATCH New Jeff Moyer 1 participant 1 message Nov 9, 2006 Kernel automounter

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 touch /var/lock/subsys/autofs at startup

Hi, Ian, list,

It turns out that a condrestart will fail if there were previously no maps, and then you populate some. This is a pretty trivial case to fix, and it looks right to me. I tested it, and it now works as expected.

Comments welcome as usual.

-Jeff

samples/rc.autofs.in +1 -0
index f6f0444..5b71481 100644
@@ -560,6 +560,7 @@ case "$1" in
 	else
 	    echo -n $"No Mountpoints Defined"
 	    success "$prog startup"
+	    touch /var/lock/subsys/autofs
 	fi
 	rm -f $TMP
 	echo