210 |
# CONFIGFILE="/etc/dhcpd.conf" |
# CONFIGFILE="/etc/dhcpd.conf" |
211 |
|
|
212 |
# Where to store the lease state information. |
# Where to store the lease state information. |
213 |
# LEASEFILE="/var/lib/dhcp/dhcpd.leases" |
# LEASEFILE="/var/lib/dhcpd/dhcpd.leases" |
214 |
|
|
215 |
# Define INTERFACES to limit which network interfaces dhcpd listens on. |
# Define INTERFACES to limit which network interfaces dhcpd listens on. |
216 |
# The default null value causes dhcpd to listen on all interfaces. |
# The default null value causes dhcpd to listen on all interfaces. |
255 |
|
|
256 |
%post server |
%post server |
257 |
%_post_service dhcpd |
%_post_service dhcpd |
258 |
systemd-tmpfiles --create %{name}.conf |
systemd-tmpfiles --create dhcpd.conf |
259 |
# New dhcpd lease file |
# New dhcpd lease file |
260 |
if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then |
if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then |
261 |
touch %{_var}/lib/dhcpd/dhcpd.leases |
touch %{_var}/lib/dhcpd/dhcpd.leases |
266 |
|
|
267 |
%post relay |
%post relay |
268 |
%_post_service dhcrelay |
%_post_service dhcrelay |
269 |
systemd-tmpfiles --create %{name}.conf |
systemd-tmpfiles --create dhcrelay.conf |
270 |
|
|
271 |
%preun relay |
%preun relay |
272 |
%_preun_service dhcrelay |
%_preun_service dhcrelay |
273 |
|
|
274 |
%post client |
%post client |
275 |
touch %{_var}/lib/dhclient/dhclient.leases |
touch %{_var}/lib/dhclient/dhclient.leases |
276 |
systemd-tmpfiles --create %{name}.conf |
systemd-tmpfiles --create dhclient.conf |
277 |
|
|
278 |
%postun client |
%postun client |
279 |
rm -rf %{_var}/lib/dhclient/dhclient.leases |
rm -rf %{_var}/lib/dhclient/dhclient.leases |