Find the answer to your Linux question:
Results 1 to 8 of 8
I tried to restart named. But it is still displaying the same message when i type PHP Code: service named status  centos 6 64 bit. Please let me know how to fix ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66

    named dead but subsys locked


    I tried to restart named. But it is still displaying the same message when i type

    PHP Code:
    service named status 
    centos 6 64 bit.
    Please let me know how to fix this

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,411
    That means, that bind crashed or was shutdown uncleanly and there is a stale lock file /var/lock/subsys/named


    Make sure, bind is not running, delete the lock file,
    then start the service.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    How do i delete the lock?
    Bind means, named right?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    I was having problem with chroot.
    So i uninstalled that. Now just running bind without chroot.

    I found this.

    PHP Code:
    root  root     25 Jan 23 16:16 named.pid -> //var/run/named/named.pid 
    under /var/run/

    It is in red color.

    PHP Code:
    /var/run/named/named.pid 
    is not exist

    Is it ln with /var/run/named/named.pid?
    How do we fix this?

  6. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,411
    Try deleting /var/run/named/named.pid and starting bind.
    You must always face the curtain with a bow.

  7. #6
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Quote Originally Posted by Irithori View Post
    Try deleting /var/run/named/named.pid and starting bind.
    The file is not there actually.

    1) I created a new file named.pid in /var/run/named/ and gave root:named with 755 permission and restarted.
    2) Removed symlink to /var/run/named.pid and restarted.

    Whenever i restart the named, /var/run/named.pid is getting linked with /var/run/named/named.pid
    Not fixed
    Last edited by agriz; 01-23-2012 at 03:19 PM.

  8. #7
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Do you have yum configured, and an internet connection? If so, how about reinstalling the package? Maybe permissions got fubar.

    First a little clean-up:
    Code:
    service named stop
    rm -rf /var/run/named*
    rm -f /var/lock/subsys/named
    Then remove and install:
    Code:
    rpm -e bind --nodeps
    yum install bind
    Last edited by atreyu; 01-24-2012 at 03:28 AM. Reason: fixed code tags

  9. #8
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    named.conf contains /var/run/named.pid as location
    init.d contains /var/run/named/named.pid

    I changed the location in named.conf to /var/run/named/named.pid
    Now it is running.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •