mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
33 lines
1.3 KiB
Desktop File
33 lines
1.3 KiB
Desktop File
[Unit]
|
|
Description=DHCPv4 Server Daemon
|
|
Documentation=man:dhcpd(8) man:dhcpd.conf(5)
|
|
Wants=network-online.target
|
|
# ldap.service: probably LDAP server starts first and dhcpd must start providing DHCP server only after LDAP has started to use LDAP for IP addresses (?)
|
|
After=network-online.target time-sync.target ldap.service
|
|
|
|
[Service]
|
|
Environment=CONFIGFILE=/etc/dhcpd6.conf LEASEFILE=/var/lib/dhcpd/dhcpd6.leases
|
|
EnvironmentFile=-/etc/sysconfig/dhcpd
|
|
Type=forking
|
|
ExecStart=/usr/sbin/dhcpd -6 -pf /run/dhcpd/dhcpd6.pid -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES
|
|
PIDFile=/run/dhcpd/dhcpd6.pid
|
|
User=isc-dhcpd
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
|
|
CapabilityBoundingSet=~CAP_SYS_ADMIN
|
|
# not ProtectSystem=full because we need a writable leases file in /var
|
|
ProtectSystem=true
|
|
ProtectHome=true
|
|
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
|
|
|
|
# This unit file in based on ROSA's unit file and Arch's
|
|
# https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/dhcp
|