mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
26 lines
742 B
SYSTEMD
26 lines
742 B
SYSTEMD
|
[Unit]
|
||
|
Description=IPv6 DHCP server
|
||
|
After=network.target network-online.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
ExecStart=/usr/bin/dhcpd -6 -q -cf /etc/dhcpd6.conf -pf /run/dhcpd6/dhcpd.pid
|
||
|
RuntimeDirectory=dhcpd6
|
||
|
PIDFile=/run/dhcpd6/dhcpd.pid
|
||
|
User=dhcp
|
||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=on
|
||
|
KillSignal=SIGINT
|
||
|
# We pull in network-online.target for a configured network connection.
|
||
|
# However this is not guaranteed to be the network connection our
|
||
|
# networks are configured for. So try to restart on failure with a delay
|
||
|
# of two seconds. Rate limiting kicks in after 12 seconds.
|
||
|
RestartSec=2s
|
||
|
Restart=on-failure
|
||
|
StartLimitInterval=12s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|