Skip to content

Instantly share code, notes, and snippets.

@xdtianyu
Created December 14, 2016 15:06
Show Gist options
  • Save xdtianyu/c32927230437afb504ff045bc1e7e578 to your computer and use it in GitHub Desktop.
Save xdtianyu/c32927230437afb504ff045bc1e7e578 to your computer and use it in GitHub Desktop.
[Unit]
Description=dhclient for sending DUID IPv6
Wants=network.target
Before=network.target
[Service]
Type=forking
ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient6.conf -pf /var/run/dhclient6.ens3.pid -6 -D LL -N -v ens3
PIDFile=/var/run/dhclient6.ens3.pid
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment