LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2012, 10:43 AM   #1
agriz
Member
 
Registered: Nov 2011
Posts: 197

Rep: Reputation: Disabled
named dead but subsys locked


PHP Code:
service named status 
result
PHP Code:
named dead but subsys locked 
I tried to configure with chroot. Webmin was having problem with chroot. I removed chroot just to use bind.

But suddenly when i check the status, I got the output.

/var/run/
PHP Code:
named.pid -> //var/run/named/named.pid 
I tried to delete the symlink. After restart, it got the symlink again.

Gave chown named:named / with 755. But still same problem

How to fix this problem?
 
Old 01-24-2012, 09:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by agriz View Post
How to fix this problem?
This may be a bitter pill to swallow but your first and foremost problem is that you do not know what you are doing, as evidenced by:

Quote:
Originally Posted by agriz View Post
Gave chown named:named / with 755. But still same problem
Issued as root this command makes everything on the file system be owned by owner and group "named". Current processes may seem to run without problems but Real Soon Now this error will show to break a lot of things. Undo what you did. Reverting ownership back works easily enough when your distribution can 'rpm -qa --setperms --setugids;' or when you can restore attributes from backup or read them from say a Samhain or AIDE database. After that you should read something like Learning the Linux Command Line (LQ: Telengard web log) and your distributions basic documentation before doing anything else.


Quote:
Originally Posted by agriz View Post
I tried to delete the symlink. After restart, it got the symlink again.
Processes, or init scripts that start processes, save the Process Id for process management. Deleting a PID file is only necessary if the process or init script did not remove the PID file (no clean exit).


Quote:
Originally Posted by agriz View Post
named dead but subsys locked[/PHP]
Either named was installed and it ran OK (and then it didn't anymore) or it never ran OK. In the first case undo what you did and ponder your modifications. In the latter case read the basic documentation ISC BIND comes with and configure it properly.


Quote:
Originally Posted by agriz View Post
I tried to configure with chroot. Webmin was having problem with chroot. I removed chroot just to use bind.
ISC BIND existed long before Webmin comes along. ISC BIND runs more securely if it can chroot itself. If you have problems running Webmin then fix the problems Webmin has, not cripple ISC BIND.
 
Old 01-24-2012, 09:50 AM   #3
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
The init is the keyword on this problem

I found that init is using different location and named.conf is using different location to create the named.pid
So, it is getting symlink and the permission is becoming root:root even if i change it to named:named

So i changed the location for named.pid in named.conf to match with init.d
Now i restarted named and it is running.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP : <<< mysqld dead but subsys locked >>> Fr33B5D Linux - Software 13 07-22-2010 01:35 PM
radiusd dead but subsys locked i_nomad Linux - Server 3 10-20-2008 02:08 AM
ypserv dead but subsys locked chandra_sekhar_n Linux - General 3 08-11-2008 09:20 AM
radiusd dead but subsys locked velocitygirl Linux - General 5 10-27-2005 09:40 AM
vsftpd dead but subsys locked ??? markstevens Linux - Software 43 03-18-2004 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration