Files
NetworkManager/tools/nm-guest-data/systemd-dhcp-host.service.in

15 lines
255 B
SYSTEMD

[Unit]
Description=dhclient service to get connectivity with the host
After=network.target
[Service]
Type=simple
Restart=on-failure
User=root
RestartSec=5
ExecStart=dhclient -d host_net
ExecStop=dhclient -r host_net
[Install]
WantedBy=multi-user.target