<div dir="auto"><div>You mean bind address is specified by dns? You could add that to the hosts file.</div><div dir="auto"><br></div><div dir="auto">Bazsi<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Wed, Apr 17, 2019, 23:48 Evan Rempel <<a href="mailto:erempel@uvic.ca">erempel@uvic.ca</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been looking at an interesting scenario on Redhat 7 (systemd) where syslog-ng fails to start because it can not resolve a network source name. This happens because the network has not started. Systemd attempts to restart syslog-ng a few times and then decides that  it is restarting syslog-ng too quickly and gives up on it.<br>
<br>
<br>
2019-04-17T05:13:30.009 daemon.warning systemd[1]: start request repeated too quickly for syslog-ng.service<br>
2019-04-17T05:13:30.010 daemon.err systemd[1]: Failed to start System Logger Daemon.<br>
2019-04-17T05:13:30.010 daemon.notice systemd[1]: Unit syslog-ng.service entered failed state.<br>
2019-04-17T05:13:30.010 daemon.warning systemd[1]: syslog-ng.service failed.<br>
<br>
<br>
My first reaction was to add the "Wants=network-online.target" to the service definition to make syslog-ng start after the network has started, but that would mean that if I boot up without a network that syslog-ng would never start, and that seems incorrect to me.<br>
<br>
Is there a way to to configure a network source to be optional and continue to retry binding to it after startup?<br>
<br>
How do others handle this issue?<br>
<br>
-- <br>
Evan<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div></div></div>