Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 483

Summary: Named startup script problem
Product: Gentoo Linux Reporter: Paul de Vrieze (RETIRED) <pauldv>
Component: [OLD] ServerAssignee: Donny Davies (RETIRED) <woodchip>
Status: VERIFIED FIXED    
Severity: normal CC: fkooman
Priority: Normal    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paul de Vrieze (RETIRED) gentoo-dev 2002-02-01 15:48:40 UTC
The init.d script for named is not good for running named. There are two - 
related - points. The startup code is wrong. This should be

start-stop-daemon --start --quiet --exec /usr/sbin/named -- -u named -n 1

the --user argument would be for start-stop-daemon, but named needs to be root 
to bind its port. 

The other point is that the standard bind pid file is /var/run/named.pid. That 
has security repercusions as bind needs write access to the dir it writes its 
pid file. Probably /var/run/named/named.pid is a better name. (If it hasn't 
write access it will not boot)
Comment 1 Ferry Meyndert (RETIRED) gentoo-dev 2002-02-04 06:51:49 UTC
*** Bug 394 has been marked as a duplicate of this bug. ***
Comment 2 Donny Davies (RETIRED) gentoo-dev 2002-02-08 19:10:51 UTC
fixed.  thanks!

Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-19 12:38:30 UTC
Closing the bug