diff options
Diffstat (limited to 'net-fs/autofs/files/autofs5.rc1')
-rw-r--r-- | net-fs/autofs/files/autofs5.rc1 | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/net-fs/autofs/files/autofs5.rc1 b/net-fs/autofs/files/autofs5.rc1 deleted file mode 100644 index 9e4252adf3ea..000000000000 --- a/net-fs/autofs/files/autofs5.rc1 +++ /dev/null @@ -1,42 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs5.rc1,v 1.1 2008/02/05 12:32:20 stefaan Exp $ - -DAEMON=/usr/sbin/automount -PIDFILE=/var/run/autofs.pid - -depend() { - need localmount - use ypbind nfs slapd portmap net -} - -opts="start stop restart status reload" - -start() { - ebegin "Starting automounter" - - # ensure autofs support is loaded - grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs - if [ $? -ne 0 ]; then - eend 1 "No autofs support available" - return 1 - fi - - start-stop-daemon --start --exec ${DAEMON} -- -p ${PIDFILE} ${daemonoptions} - - eend $? -} - -stop() { - ebegin "Stopping automounter" - start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE} - eend $? -} - -reload() { - ebegin "Reloading automounter" - kill -HUP $(cat ${PIDFILE}) - eend $? -} - |