Date: Fri, 30 Apr 2021 18:16:29 +0900 (JST) From: Yasuhiro Kimura <yasu@utahime.org> To: freebsd-ports@freebsd.org, freebsd-stable@freebsd.org Subject: Re: How to make 'named' rc script invokded earlier at boot time Message-ID: <20210430.181629.517597970532092263.yasu@utahime.org> In-Reply-To: <20210430.171826.210150119436256829.yasu@utahime.org> References: <20210430.163054.429403798691966830.yasu@utahime.org> <20210430080231.xhmuogfeu4xf3mqs@aching.in.mat.cc> <20210430.171826.210150119436256829.yasu@utahime.org>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Yasuhiro Kimura <yasu@utahime.org> Subject: Re: How to make 'named' rc script invokded earlier at boot time Date: Fri, 30 Apr 2021 17:18:26 +0900 (JST) >> The only way I can see is modify the named rc script and add the >> services that needs named to be started on the BEFORE line at the >> beginning of the script. Mind you, it really needs to start after >> syslog (unless you log directly to files and do not use syslog.) > > Thanks for advice. I'll try it. I tried it but am confused by the result. I modified /usr/local/etc/rc.d/named on my home server as following. ---------------------------------------------------------------------- root@eastasia[1051]# head /usr/local/etc/rc.d/named #!/bin/sh # PROVIDE: named # REQUIRE: NETWORKING ldconfig syslogd # BEFORE: SERVERS ntpdate # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable BIND: # named_enable (bool): Run named, the DNS server (or NO). root@eastasia[1052]# ---------------------------------------------------------------------- And I executed `rcorder /etc/rc.d/* /usr/local/etc/rc.d/*`. Then I got just same result as before the modification. So I modifed /etc/rc.d/ntpdate as following. ---------------------------------------------------------------------- root@eastasia[1053]# head /etc/rc.d/ntpdate ~ #!/bin/sh # # $FreeBSD$ # # PROVIDE: ntpdate # REQUIRE: NETWORKING syslogd named # KEYWORD: nojail . /etc/rc.subr root@eastasia[1054]# ---------------------------------------------------------------------- But the result still didn't changed. As I wrote another mail my result of `rcorder -p` is different from that of Helge Oldach. These oddities may be related. I'll investigate further but it may take for a while. --- Yasuhiro Kimura
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210430.181629.517597970532092263.yasu>