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