systemd: Add dependency on the tap device

This ensures that the network device the systemd unit needs exists.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Christophe Fergeau
2023-04-21 09:43:26 +02:00
parent d820a9aaa9
commit db02c55d04

View File

@@ -1,6 +1,8 @@
[Unit]
Description=gvisor-tap-vsock Network Traffic Forwarder
After=NetworkManager.service
BindsTo=sys-devices-virtual-net-%i.device
After=sys-devices-virtual-net-%i.device
[Service]
Environment=GV_VSOCK_PORT="1024"