Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 130701790bf2d95e902edf16031ff596 > files > 187

autofs-5.0.1-0.rc2.164.el5_8.src.rpm

diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in
index a5e1f31..f0ed3d9 100644
--- a/redhat/autofs.init.in
+++ b/redhat/autofs.init.in
@@ -131,8 +131,13 @@ case "$1" in
 	reload)
 		reload
 		;;
+	condrestart)
+		if [ -f /var/lock/subsys/autofs ]; then
+			restart
+		fi
+		;;
 	*)
-		echo $"Usage: $0 {start|stop|status|restart|reload}"
+		echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
 		exit 1;
 		;;
 esac