Skip to content

Instantly share code, notes, and snippets.

@MitsuhaMiyamizu
Forked from xdtianyu/dhclient.service
Created December 14, 2016 15:07
Show Gist options
  • Save MitsuhaMiyamizu/c601157fa66ff99591e35673189d4103 to your computer and use it in GitHub Desktop.
Save MitsuhaMiyamizu/c601157fa66ff99591e35673189d4103 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