Mercurial > code > home > repos > infra
changeset 140:ebb2c4651886
fix dnsmasq startup, untested
author | drewp@bigasterisk.com |
---|---|
date | Tue, 10 Jan 2023 10:54:16 -0800 |
parents | 105b628e3bfa |
children | 64fe74f0005f |
files | templates/dnsmasq/dnsmasq.service.j2 |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/dnsmasq/dnsmasq.service.j2 Tue Jan 10 10:53:32 2023 -0800 +++ b/templates/dnsmasq/dnsmasq.service.j2 Tue Jan 10 10:54:16 2023 -0800 @@ -2,7 +2,11 @@ [Unit] Description=dnsmasq for {{ net }} network -Requires=network.target + +# this dnsmasq needs to bind to addr 10.2.0.3 +Requires=network-online.target +Requires=sys-subsystem-net-devices-eth1.device + Wants=nss-lookup.target Before=nss-lookup.target After=network.target @@ -23,7 +27,8 @@ Type=simple # 10.5 will not work until wg0 interface is actually up, so just let it retry -SuccessExitStatus=2 +# but i think this next line was not the right way to retry. +#SuccessExitStatus=2 # Test the config file and refuse starting if it is not valid. ExecStartPre=/usr/sbin/dnsmasq --conf-file=/opt/dnsmasq/{{ net }}/dnsmasq.conf --test