<div dir="ltr"><div><div>Reindl<br><br></div>Thank you for your response. Let me see if what you provided will work with what I am trying to do. <br><br><br></div>Thanks again!<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 1:36 PM, Reindl Harald <span dir="ltr"><<a href="mailto:h.reindl@thelounge.net" target="_blank">h.reindl@thelounge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
Am 25.04.2016 um 19:23 schrieb Sean Son:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you for your reply.<br>
<br>
The issue is, I do not know what other services/targets will need to be<br>
started prior to BIND starting. In other words, I have no idea how to<br>
set up the unit file for BIND.<br>
</blockquote>
<br></span>
none - just none<br>
<br>
and even if - how would a blind script at startup solve that question - if it don't (and it really don't) what's your exactly problem?<br>
_______________________________________________<br>
<br>
[Unit]<br>
Description=DNS Server<br>
<br>
[Service]<br>
Type=simple<br>
ExecStart=/usr/sbin/named -f -u named<br>
ExecReload=/usr/bin/kill -HUP $MAINPID<br>
ExecStop=/usr/bin/kill -TERM $MAINPID<br>
Restart=always<br>
RestartSec=1<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
_______________________________________________<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Mon, Apr 25, 2016 at 12:09 PM, Anand Buddhdev <<a href="mailto:anandb@ripe.net" target="_blank">anandb@ripe.net</a><br></span><span class="">
<mailto:<a href="mailto:anandb@ripe.net" target="_blank">anandb@ripe.net</a>>> wrote:<br>
<br>
On 25/04/16 17:59, Sean Son wrote:<br>
<br>
Hi Sean Son,<br>
<br>
> I know I emailed the list about compiling BIND on a SystemD distro earlier<br>
> last month. This time I have a different question. After I compile BIND9 on<br>
> CentOS 7 , how do I get it to start up at boot time and how do I restart<br>
> it? I don't want to have to write a systemd unit configuration file for it.<br>
> I want it to run using a boot script or some other way that will allow BIND<br>
> to start up at boot and also allow the system administrator to restart BIND<br>
> if it ever stops running.<br>
<br>
A systemd unit file is the *easiest* and *simplest* way to get BIND to<br>
start at boot. Is there any reason you don't want to use systemd? It's<br>
not difficult at all. You just a few lines in a file to create a system<br>
unit.<br>
<br>
If you don't want systemd to restart BIND if it crashes, then you can<br>
just set:<br>
<br>
Restart=no<br>
<br>
Then, you can start BIND by hand with "systemctl start <unitname>"<br>
</span></blockquote>
<br>
</blockquote></div><br></div>