mirror of
https://github.com/containers/gvisor-tap-vsock.git
synced 2025-12-24 13:29:22 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user