Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 268933 Details for
Bug 362535
net-misc/dhcp-4.2.1-r1 init script is not suitable for chroot usage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dhcpd.init.diff
dhcpd.init.diff (text/plain), 1.06 KB, created by
Andrew Savchenko
on 2011-04-07 22:04:52 UTC
(
hide
)
Description:
dhcpd.init.diff
Filename:
MIME Type:
Creator:
Andrew Savchenko
Created:
2011-04-07 22:04:52 UTC
Size:
1.06 KB
patch
obsolete
>--- dhcpd.orig 2011-04-07 22:41:33.000000000 +0400 >+++ dhcpd 2011-04-08 01:36:27.000000000 +0400 >@@ -14,7 +14,7 @@ > > get_var() { > sed -n 's/^[[:blank:]]\?'"$1"' "*\([^#";]\+\).*/\1/p' \ >- "${DHCPD_CHROOT}/${DHCPD_CONF}" >+ "${DHCPD_CONF}" > } > > checkconfig() { >@@ -46,8 +46,8 @@ > ;; > esac > >- if [ ! -f "${DHCPD_CHROOT}/${DHCPD_CONF}" ] ; then >- eerror "${DHCPD_CHROOT}/${DHCPD_CONF} does not exist" >+ if [ ! -f "${DHCPD_CONF}" ] ; then >+ eerror "${DHCPD_CONF} does not exist" > return 1 > fi > >@@ -68,6 +68,7 @@ > if [ -n "${DHCPD_CHROOT}" ] ; then > LD_PRELOAD="${LD_PRELOAD} /usr/lib/libresolv.so" > export LD_PRELOAD="${LD_PRELOAD} /usr/lib/libnss_dns.so" >+ mount --bind /proc "${DHCPD_CHROOT}/proc" > fi > > local pidfile="$(get_var pid-file-name)" >@@ -90,5 +91,10 @@ > ebegin "Stopping ${chroot:+chrooted }${SVCNAME}" > start-stop-daemon --stop --exec /usr/sbin/dhcpd \ > --pidfile "${chroot}/$(get_options pidfile)" >- eend $? >+ res=$? >+ >+ if [ -n "${DHCPD_CHROOT}" ] ; then >+ umount "${DHCPD_CHROOT}/proc" >+ fi >+ eend $res > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 362535
:
268933
|
268937
|
268939
|
284957