Hi list

This is still happening in Bullseye: knockd shuts down with the interface citing "pcap: The interface went down"

and does not get restarted when the interface comes up again. A simple systemctl restart knockd does the trick, but this is

not triggered automatically when you still use the networking.service (ifup method)

So I tried a knockd.service.d override that should bind knockd to the relevant interface with:

[Unit]

BindsTo=ifup@eth1.service

This fails as well with exit status 15.



On Tue, 19 Apr 2011 01:02:00 +0200 Christian Kastner <deb...@kvr.at> wrote:

>
> retitle 315753 knockd shuts down when the interface disappears
>
> The problem can be generalized: knockd shuts down when the interface
> disappears, be it ppp0 or eth0 or whatever.
>
> Running knock in the foreground, the following message is printed when
> the interface goes down (and nothing else):
>
> "pcap: The interface went down"
>
> Perhaps this condition could be handled differently, eg: waiting either
> for the interface to come back up or /etc/init.d/knock stop is called?
>
>

Reply via email to