2010-12-07 14:02:57 +00:00
|
|
|
[Unit]
|
|
|
|
Description=DHCPv4 Server Daemon
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/sysconfig/dhcpd
|
2011-12-19 17:38:02 +00:00
|
|
|
# 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/
|
2011-08-12 12:50:08 +00:00
|
|
|
ExecStart=/usr/sbin/dhcpd -d -user dhcpd -group dhcpd --no-pid $DHCPDARGS
|
2010-12-07 14:02:57 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|