Gentoo Archives: gentoo-commits

From: "Stefaan De Roeck (stefaan)" <stefaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/autofs/files: autofs.rc14
Date: Thu, 31 Jan 2008 23:19:28
Message-Id: E1JKigo-0007ZC-3N@stork.gentoo.org
1 stefaan 08/01/31 23:19:26
2
3 Added: autofs.rc14
4 Log:
5 Big version bump to 5.0.3, probably fixes many open bugs
6 (Portage version: 2.1.4)
7
8 Revision Changes Path
9 1.1 net-fs/autofs/files/autofs.rc14
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/files/autofs.rc14?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/files/autofs.rc14?rev=1.1&content-type=text/plain
13
14 Index: autofs.rc14
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2004 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc14,v 1.1 2008/01/31 23:19:25 stefaan Exp $
20
21 DAEMON=/usr/sbin/automount
22 PIDFILE=/var/run/autofs.pid
23
24 depend() {
25 need localmount
26 use ypbind nfs slapd portmap net
27 }
28
29 opts="start stop restart status reload"
30
31 start() {
32 ebegin "Starting automounter"
33
34 # ensure autofs support is loaded
35 grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs
36 if [ $? -ne 0 ]; then
37 eend 1 "No autofs support available"
38 return 1
39 fi
40
41 start-stop-daemon --start --exec ${DAEMON} -- -p ${PIDFILE} ${daemonoptions}
42
43 eend $?
44 }
45
46 stop() {
47 ebegin "Stopping automounter"
48 start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE}
49 eend $?
50 }
51
52 reload() {
53 ebegin "Reloading automounter"
54 kill -HUP $(cat ${PIDFILE})
55 eend $?
56 }
57
58
59
60
61 --
62 gentoo-commits@l.g.o mailing list