[OpenIndiana-discuss] DNS server startup fails to maintenance
russell
stream at willows7.myzen.co.uk
Sun Feb 1 20:57:56 UTC 2026
Hi
I have my DNS server load local and remote zones and due to the time for
the remote zones to load, the DNS Server is regularly moving to a
maintenance state.
I found that by disabling and enabling the DNS server it eventually
completed all the zone transfers from the remote server and would start,
in order to automate this I wrote the following script
#!/bin/bash
REPEAT="maintenance"
ONLINE="online"
while [ "$REPEAT" != "$ONLINE" ]
do
MSG1=$(svcs -a | grep 'svc:/network/dns/server:default' | awk '{
print $1 }')
REPEAT=$MSG1
if [ "$MSG1" = "maintenance" ]; then
svcadm disable svc:/network/dns/server:default ; svcadm enable
-r svc:/network/dns/server:default
else
sleep 30
fi
done
Is there a way to do this via svccfg -s svc:/network/dns/server:default
and changing the listprop
options application
options/chroot_dir astring
options/configuration_file astring
options/debug_level integer 0
options/ip_interfaces astring all
options/listen_on_port integer 0
options/server astring
options/threads integer 0
options/user astring named
general framework
general/action_authorization astring solaris.smf.manage.bind
general/value_authorization astring solaris.smf.manage.bind
general/comment astring
general/enabled boolean true
start method
start/exec astring "/lib/svc/method/dns-server
%m %i"
start/group astring root
start/type astring method
start/use_profile boolean false
start/user astring root
start/timeout_seconds count 600 ** tried
increasing this but it did not help **
stop method
stop/exec astring "/lib/svc/method/dns-server
%m %i %{restarter/contract}"
stop/group astring root
stop/timeout_seconds count 60
stop/type astring method
stop/use_profile boolean false
stop/user astring root
refresh method
refresh/exec astring ":kill -HUP"
refresh/timeout_seconds count 60
refresh/type astring method
restarter framework NONPERSISTENT
restarter/alt_logfile astring
/etc/svc/volatile/network-dns-server:default.log
restarter/logfile astring
/var/svc/log/network-dns-server:default.log
restarter/contract count 122
restarter/start_pid count 1609
restarter/start_method_timestamp time 1769979183.561970000
restarter/start_method_waitstatus integer 0
restarter/auxiliary_state astring dependencies_satisfied
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1769979183.563133000
restarter_actions framework NONPERSISTENT
restarter_actions/auxiliary_tty boolean true
Russell
More information about the openindiana-discuss
mailing list