https://bugs.koozali.org/show_bug.cgi?id=12261

            Bug ID: 12261
           Summary: Arpwatch fails on network restart
    Classification: Contribs
           Product: SME Contribs
           Version: 10.0
          Hardware: x86_64
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-arpwatch
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Since recent updates arpwatch fails on network restart with:
pcap_loop: The interface went down

JP suggested adding PartOf=network.service in [Unit]
but at least 10 seconds delay is needed for network to be up

[Service]
ExecStartPre=/bin/sleep 30

seems to work fine:

Dec 11 00:25:47 nv kernel: [624988.557219] device enp3s0 left promiscuous mode
Dec 11 00:25:47 nv kernel: device enp3s0 left promiscuous mode
Dec 11 00:25:47 nv sv: ok: down: /service/wan: 0s
Dec 11 00:25:47 nv network: Shutting down interface enp2s0:  [  OK  ]
Dec 11 00:25:47 nv network: Shutting down interface enp3s0:  [  OK  ]
Dec 11 00:25:47 nv network: Shutting down loopback interface:  [  OK  ]
Dec 11 00:25:48 nv network: Bringing up loopback interface:  [  OK  ]
Dec 11 00:25:48 nv kernel: [624989.703427] enp2s0: 0xffffa67940c6e000,
10:fe:ed:01:3b:30, IRQ 26
Dec 11 00:25:48 nv kernel: [624989.860156] IPv6: ADDRCONF(NETDEV_UP): enp2s0:
link is not ready
Dec 11 00:25:48 nv kernel: enp2s0: 0xffffa67940c6e000, 10:fe:ed:01:3b:30, IRQ
26
Dec 11 00:25:48 nv kernel: IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
Dec 11 00:25:51 nv kernel: [624992.866764] r8168: enp2s0: link up
Dec 11 00:25:51 nv kernel: [624992.866819] IPv6: ADDRCONF(NETDEV_CHANGE):
enp2s0: link becomes ready
Dec 11 00:25:51 nv kernel: r8168: enp2s0: link up
Dec 11 00:25:51 nv kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes
ready
Dec 11 00:25:52 nv network: Bringing up interface enp2s0:  [  OK  ]
Dec 11 00:25:52 nv kernel: [624994.010363] enp3s0: 0xffffa67940c78000,
d4:3d:7e:41:39:bb, IRQ 27
Dec 11 00:25:52 nv kernel: enp3s0: 0xffffa67940c78000, d4:3d:7e:41:39:bb, IRQ
27
Dec 11 00:25:52 nv kernel: [624994.171170] IPv6: ADDRCONF(NETDEV_UP): enp3s0:
link is not ready
Dec 11 00:25:52 nv kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Dec 11 00:25:56 nv kernel: [624998.181154] r8168: enp3s0: link up
Dec 11 00:25:56 nv kernel: [624998.181224] IPv6: ADDRCONF(NETDEV_CHANGE):
enp3s0: link becomes ready
Dec 11 00:25:56 nv kernel: r8168: enp3s0: link up
Dec 11 00:25:56 nv kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes
ready
Dec 11 00:25:56 nv network: Bringing up interface enp3s0:  [  OK  ]
Dec 11 00:25:56 nv rsyslogd: [origin software="rsyslogd"
swVersion="8.24.0-57.el7_9.3" x-pid="26982" x-info="http://www.rsyslog.com";]
exiting on signal 15.
Dec 11 00:25:57 nv rsyslogd: [origin software="rsyslogd"
swVersion="8.24.0-57.el7_9.3" x-pid="29895" x-info="http://www.rsyslog.com";]
start
Dec 11 00:25:57 nv sv: ok: down: /service/wan: 0s
Dec 11 00:26:17 nv kernel: [625018.614458] device enp3s0 entered promiscuous
mode
Dec 11 00:26:17 nv kernel: device enp3s0 entered promiscuous mode

Dec 11 00:25:47 nv arpwatch: exiting
Dec 11 00:26:17 nv arpwatch: Running as uid=77 gid=77
Dec 11 00:26:17 nv arpwatch: listening on enp3s0

# cat /usr/lib/systemd//system/arpwatch.service.d/50koozali.conf
[Unit]
After=
After=network-online.target
PartOf=network.service
[Service]
ExecStartPre=/bin/sleep 30
[Install]
WantedBy=
WantedBy=sme-server.target

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to