Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52400 - Named won't start as user named, init script won't start named either.
Summary: Named won't start as user named, init script won't start named either.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Stewart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 16:09 UTC by leonardb
Modified: 2004-06-01 16:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leonardb 2004-05-29 16:09:10 UTC
Named wont start as user "named" -u named, init script wont start named either. It can only be started from the CLI/shell /usr/sbin/named .. /var/named /var/bind and /etc/bind are named:named

the binary /usr/sbin/named  is root:root

Reproducible: Always
Steps to Reproduce:
1.on boot up named starts but it silently dies ..
2./etc/init.d/named start
3./etc/init.d/named restart/stop

Actual Results:  
/etc/init.d/named start
 * Starting named...
  [ ok ]

But it dies electly ..

/etc/init.d/named start
 * WARNING:  "named" has already been started.

Its not really started

/etc/init.d/named stop 
  [ !! ]ing named...

Cant stop it ..


i am submitting this as critical because my mail server and other clients hosts 
including the dns server does not resolve, so for now i am running named under 
CLi until its able to be ran correctly.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-29 16:59:41 UTC
'/etc/init.d/named zap' will tell the init system that named isn't running anymore if you are trying to start it after it has crashed.

named has a tendancy to just die without giving much information if there is something wrong with it's configuration files.
Comment 2 leonardb 2004-05-29 17:10:25 UTC
Should have included that i use that syntax to stop and reset named when restart or stop fail

Um .. the configuration files are in perfect configuration .. its the init script or something else .. 

how is it that i can run named as root and not as named .. since this is true, then the init script will never work because it tries to run as named ..
Comment 3 leonardb 2004-06-01 06:40:27 UTC
Has anyone looked into this? Any suggestions .. ?
Comment 4 leonardb 2004-06-01 16:50:26 UTC
Well .. with the help at the forums.. i was able to get this fixed .. was a dang pid file .. 

but this still seems strange as i was getting errors because user named i guess was denied permission to remove or overwrite the named pid file in /var/named/named.pid

Jun 01 17:29:56.442 couldn't open pid file '/var/run/named.pid': Permission denied 
  [ !! ]7:29:56.442 exiting (due to early fatal error)


THE FIX:
/etc/conf.d/named.conf

Add the syntax below

pid-file "/var/run/named/named.pid"; 


Thanks to Chris W at the forums ..