> Hi all! > > I made a change to some DNS zones last week and > restarted named. I use the Sun version with the > default manifest. As a result, the DNS server service > was disabled and I only noticed days later; > > [ Jan 19 18:01:29 Stopping because service > restarting. ] > [ Jan 19 18:01:30 Executing stop method (:kill) ] > [ Jan 19 18:01:31 Disabled. ] > [ Jan 21 22:53:31 Enabled. ] > [ Jan 21 22:53:32 Executing start method > ("/usr/sbin/named") ] > [ Jan 21 22:53:32 Method "start" exited with status 0 > ] >
The snippet above suggests that named was started as expected (exited with status 0). Note that this simply means that named forked, it does not mean that no other issues occurred. For possible issues with configuration or resources refer to syslog and /var/adm/messages. Missing from the output above is an indication that named was then disabled, as the log should say that it was disabled. This might happen due to an 'rndc stop' or an 'svcadm disable svc:network/dns/server:default' occurring. If named failed to start then the log should report several successful starts and then show it was taken off line. > So I glance at the manifest and find this curious > detail; > > <dependency name='config_data' > grouping='require_all' restart_on='none' > type='path'> > <service_fmri > value='file://localhost/etc/named.conf'/> > </dependency> > furthermore I also find the following fun fact; > > # ls -lc /etc/named.conf > -rw-r--r-- 1 root root 1432 Jan 19 20:13 > /etc/named.conf > # ls -l /etc/named.conf > -rw-r--r-- 1 root root 1432 Nov 27 09:06 > /etc/named.conf > > Did the time stamp on /etc/named.conf prevent the > service from restarting? If so, shouldn't the service > have gone into an offline state rather than > disabled? > > -Alex I believe the dependency simply verifies the file is there and should thus not disable the service. Curiously, was anything logged to syslog? Also be aware that the bind server should be patched with path 119783-01 / 119784-01, prior to this patch named would disable itself for example during shutdown; but that should be shown in the log. Stace. http://blogs.sun.com/ace This message posted from opensolaris.org