dhcp/dhcpd.service
Jiri Popelka 8b9d5e1b3b don't ship legacy SysV initscripts + dhcpd[6].service improvements
dhcpd6: move '-cf /etc/dhcp/dhcpd6.conf' from sysconfig/dhcpd6 to dhcpd6.service
run 'chown -R dhcpd:dhcpd /var/lib/dhcpd/' before starting dhcpd/dhcpd6 service
       for the case where leases file is owned by root:root as a
       consequence of running dhcpd without '-user dhcpd -group dhcpd' (#744292)
2011-12-19 18:38:42 +01:00

14 lines
432 B
Desktop File

[Unit]
Description=DHCPv4 Server Daemon
After=syslog.target network.target
[Service]
EnvironmentFile=/etc/sysconfig/dhcpd
# For the case where /var/lib/dhcpd/dhcpd.leases is owned by root:root as a
# consequence of running dhcpd without '-user dhcpd -group dhcpd'
ExecStartPre=/bin/chown -R dhcpd:dhcpd /var/lib/dhcpd/
ExecStart=/usr/sbin/dhcpd -d -user dhcpd -group dhcpd --no-pid $DHCPDARGS
[Install]
WantedBy=multi-user.target