8b9d5e1b3b
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)
14 lines
432 B
Desktop File
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
|