Hi,
Gabriel Wicki <[email protected]> writes:
> hi there!
>
> my email setup is up and running like a charm, except when rebooting
> smtpd fails to start (repeatedly) and gets disabled.
> the log says:
>> smtpd: invalid virtual ip or interface: eth0
> my service DOES depend on 'networking but this seems not to be enough?
> has anybody else run into this?
This could be due to the recent move to the new dhclient, which doesn't
seem to wait as long as the old client used to.
I'm working around the problem for my wireguard setup with this:
--8<---------------cut here---------------start------------->8---
(simple-service 'network-online shepherd-root-service-type
(list
(shepherd-service
(requirement '(networking))
(provision '(network-online))
(documentation "Wait for the network to come up.")
(start
#~(lambda _
(let ((timeout #$(file-append coreutils
"/bin/timeout"))
(sh #$(file-append bash-minimal "/bin/sh"))
(ping #$(file-append inetutils "/bin/ping")))
(zero?
(system* timeout "60" sh "-c"
(string-append
"until " ping " -qc1 -W1 example.org;"
" do sleep 1; done"))))))
(one-shot? #t))))
[...]
(service wireguard-service-type
(wireguard-configuration
(shepherd-requirement '(network-online))
[...]
--8<---------------cut here---------------end--------------->8---
HTH,
--
Thanks,
Maxim