Systemd service unit file needs to wait until a specific interface is up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi all,


With SystemD, how can I make certain service dependent on certain network interfaces being up?

For example, I have an 802.1ad bond interface I need to wait on for being up (this interface has no ip address assigned, it is used to capture networks packets with a tcpdump’s script). Every time this service fails because bond interface is not up.



I have configured the service as:



[Unit]

Description=tcpdump capture script

After=network.target

Wants=network-online.target



But it doesn’t work …. Any tip or trick?



My host is CentOS8 x86_64.


Regards,
C. L. Martinez

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux