Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 130707 Details for
Bug 158449
net-fs/autofs-5.0.1_rc3 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-fs/autofs/files/autofs5.init
autofs5.init (text/plain), 1.99 KB, created by
Dmitry S. Kulyabov
on 2007-09-12 13:31:12 UTC
(
hide
)
Description:
net-fs/autofs/files/autofs5.init
Filename:
MIME Type:
Creator:
Dmitry S. Kulyabov
Created:
2007-09-12 13:31:12 UTC
Size:
1.99 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvs/root/autofs/gentoo/net-fs/autofs/files/autofs.init,v 1.17 2006/03/30 02:09:51 raven Exp $ > ># rc file for automount using a Sun-style "master map". ># We first look for a local /etc/autofs/auto.master, then a YP ># map with that name > >DAEMON=/usr/sbin/automount >SYSCONFDIR=/etc/autofs >MASTERMAP=$SYSCONFDIR/auto.master > >depend() { > need localmount portmap > use ypbind nfs slapd portmap >} > >opts="start stop status reload restart" > >start() { > ebegin "Starting automounter" > > # ensure autofs support is loaded > grep -q autofs /proc/filesystems || modprobe -k autofs4 2>/dev/null > if [ $? -ne 0 ] > then > eend 1 "No autofs support available" > exit 1 > fi > > # ensure pid file directory exists > if [ ! -e /var/run/autofs ] > then > mkdir /var/run/autofs > fi > > start-stop-daemon --start --pidfile $pidfile --quiet \ > --exec $DAEMON -- --pid-file=$pidfile $MASTERMAP > ret=$? > > if [ $ret -ne 0 ] > then > echo "Could not start automount for $mnt" > fi > > eend $ret >} > >stop() { > ebegin "Stopping automounter" > > for file in `ls /var/run/autofs/*.pid 2>/dev/null` > do > if [ -e "$file" ] > then ># any=1 > pid=`head -n 1 $file` > mnt=`ps -wwo 'cmd=' $pid | sed -e \ > 's,.* --pid-file=/var/run/autofs/\([^ ]*\)\.pid.*,\1,; s,_,/,g'` > dname=`basename $DAEMON` > > start-stop-daemon --stop --quiet \ > --retry TERM/${daemon_exit_wait} \ > --pidfile $file --name $dname > ret=$? > > case $ret in > 0) > rm -f $file > ;; > 1) > echo "No process for automount $mnt" > rm -f $file > ;; > 2) > echo "Couldn't stop automount for $mnt" > ;; > *) > echo "Strange start-stop-daemon exit status: $?" > ;; > esac > fi > done > > eend $ret >} > >reload() { > echo "Reloading automounter maps" > > for i in `ls /var/run/autofs/*.pid 2>/dev/null` > do > pid=`head -n 1 $i 2>/dev/null` > [ "$pid" = "" ] && continue > > kill -HUP $pid 2> /dev/null > done >} > >restart() { > svc_stop > svc_start >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 158449
:
104278
|
104279
|
108736
|
108738
|
122584
|
122666
|
130691
|
130706
| 130707 |
130709
|
130711
|
130713
|
130788
|
130789
|
135187
|
135188
|
140809
|
140810
|
140811
|
142301
|
142302