Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13th September 2011, 02:15 PM
VirtualLlama Offline
Registered User
 
Join Date: Sep 2011
Posts: 2
macossafari
Unhappy Fedora 15 named won't run through systemctl

Ok, a little background first. I'm actually migrating a working bind configuration from an old Fedora 9 box onto a freshly installed Fedora 15. During migration I've moved the config files from a non-standard directory into /var/named.

After several hours of tinkering and testing I get a working config by running named from a shell prompt, startup is without error, all resolution works, so I kill it and try to set it to auto-run from systemctl, this is where my problems start. This is what I get:

root@titan sysconfig]# systemctl status named.service
named.service - LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server
Loaded: loaded (/etc/rc.d/init.d/named)
Active: failed since Tue, 13 Sep 2011 14:09:13 +0100; 1min 55s ago
Process: 1864 ExecStop=/etc/rc.d/init.d/named stop (code=exited, status=0/SUCCESS)
Process: 3960 ExecStart=/etc/rc.d/init.d/named start (code=exited, status=2/INVALIDARGUMENT)
CGroup: name=systemd:/system/named.service
[root@titan sysconfig]#

and I see this in the logs:

Sep 13 14:09:13 titan named: /etc/named.conf:5: change directory to '/var/named' failed: permission denied
Sep 13 14:09:13 titan named:
Sep 13 14:09:13 titan named: /etc/named.conf:5: parsing failed
Sep 13 14:09:13 titan systemd[1]: named.service: control process exited, code=exited status=2
Sep 13 14:09:13 titan systemd[1]: Unit named.service entered failed state.

I've checked that selinux is behaving (which it seems to be). I've re-checked the file and directory permissions for named.conf as per the original installed files, I've checked that CHROOT is disabled.

I've worked through the startup process in /etc/init.d/named as best I can and saw it was starting named with "-u named" so I've tried that from a shell prompt and that works too so at this stage I know there is nothing wrong with the actual bind setup which only seems to leave "systemctl" as the culprit.

Has anybody else come across this issue or is able to tell me what "systemctl" is doing to bind to stop it working when it quite clearly should be?
Reply With Quote
  #2  
Old 14th September 2011, 04:42 PM
VirtualLlama Offline
Registered User
 
Join Date: Sep 2011
Posts: 2
macossafari
Re: Fedora 15 named won't run through systemctl

A day later and a whole lot of other stuff installed on the same machine... and after falling foul of SELinux several times (ok, lots of times) I think that might be the cause of my problems. Despite the fact that I'm getting no warnings whatsoever from selinux when I try to start named it seems to work fine if I switch it from enforcing to permissive mode.
Reply With Quote
Reply

Tags
bind, named, systemctl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
systemctl list all services balken Using Fedora 22 11th April 2013 11:22 PM
difference between service and systemctl roger F15 Development 1 23rd April 2011 02:05 AM
Copying /var/named files from Fedora 7 to Fedora 11 does not configure bind charlweed Servers & Networking 4 24th October 2009 04:40 PM
Fedora N seems to be named correctly SlowJet Fedora Focus 2 17th August 2008 10:11 AM
FC6: DNS (named) problem with named.ca (root.hints) greno EOL (End Of Life) Versions 2 16th January 2007 03:10 PM


Current GMT-time: 13:57 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat