Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20206 Details for
Bug 31840
dhcp-3.0_p2-r2: Can't create new lease file: Permission denied
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Temporary (headache-) workaround
dhcp (text/plain), 1.20 KB, created by
Thomas Preissler
on 2003-11-03 15:37:52 UTC
(
hide
)
Description:
Temporary (headache-) workaround
Filename:
MIME Type:
Creator:
Thomas Preissler
Created:
2003-11-03 15:37:52 UTC
Size:
1.20 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /home/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcp.rc6,v 1.6 2003/08/13 20:12:55 max Exp $ > >depend() { > need net > use logger dns >} > >checkconfig() { > if [ ! -f "${CHROOT}/etc/dhcp/dhcpd.conf" ] ; then > eerror "No ${CHROOT}/etc/dhcp/dhcpd.conf file exists!" > return 1 > fi > > if [ ! -f "${CHROOT}/var/lib/dhcp/dhcpd.leases" ] ; then > ebegin "Creating dhcpd.leases" > touch "${CHROOT}/var/lib/dhcp/dhcpd.leases" || return 1 > eend $? > fi > > ebegin "Setting ownership on dhcpd.leases" > chown dhcp:dhcp "${CHROOT}/var/lib/dhcp/dhcpd.leases" || return 1 > eend $? >} > >start() { > checkconfig || return 1 > > ebegin "Starting ${CHROOT:+chrooted }dhcpd" > chown dhcp:dhcp "/var/lib/dhcp/dhcpd.leases" ># start-stop-daemon --start --quiet --exec /usr/sbin/dhcpd \ ># -- -user dhcp -group dhcp ${DHCPD_OPTS} \ ># ${CHROOT:+-chroot ${CHROOT}} ${IFACE} > start-stop-daemon --start --quiet --exec /usr/sbin/dhcpd \ > -- ${DHCPD_OPTS} \ > ${CHROOT:+-chroot ${CHROOT}} ${IFACE} > eend $? >} > >stop() { > ebegin "Stopping dhcpd" > start-stop-daemon --stop --quiet --retry 5 --exec /usr/sbin/dhcpd > eend $? >}
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 31840
:
20205
| 20206 |
20276
|
20916