mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Fix tmpfiles creation
This commit is contained in:
parent
1563e8fc1b
commit
92dda042eb
2 changed files with 7 additions and 4 deletions
|
@ -257,7 +257,8 @@ rm %{buildroot}%{_sysconfdir}/dhcpd.conf.example
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
%_post_service dhcpd
|
%_post_service dhcpd
|
||||||
%tmpfiles_create dhcpd
|
/bin/systemd-tmpfiles --create dhcpd
|
||||||
|
# %tmpfiles_create dhcpd
|
||||||
# New dhcpd lease file
|
# New dhcpd lease file
|
||||||
if [ ! -f %{_localstatedir}/lib/dhcp/dhcpd.leases ]; then
|
if [ ! -f %{_localstatedir}/lib/dhcp/dhcpd.leases ]; then
|
||||||
touch %{_localstatedir}/lib/dhcp/dhcpd.leases
|
touch %{_localstatedir}/lib/dhcp/dhcpd.leases
|
||||||
|
@ -268,13 +269,15 @@ fi
|
||||||
|
|
||||||
%post relay
|
%post relay
|
||||||
%_post_service dhcrelay
|
%_post_service dhcrelay
|
||||||
%tmpfiles_create dhcrelay
|
/bin/systemd-tmpfiles --create dhcrelay
|
||||||
|
# %tmpfiles_create dhcrelay
|
||||||
|
|
||||||
%preun relay
|
%preun relay
|
||||||
%_preun_service dhcrelay
|
%_preun_service dhcrelay
|
||||||
|
|
||||||
%post client
|
%post client
|
||||||
%tmpfiles_create dhclient
|
/bin/systemd-tmpfiles --create dhclient
|
||||||
|
# %tmpfiles_create dhclient
|
||||||
touch %{_localstatedir}/lib/dhclient/dhclient.leases
|
touch %{_localstatedir}/lib/dhclient/dhclient.leases
|
||||||
|
|
||||||
%postun client
|
%postun client
|
||||||
|
|
|
@ -4,7 +4,7 @@ After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/sysconfig/dhcpd
|
EnvironmentFile=/etc/sysconfig/dhcpd
|
||||||
ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $INTERFACES
|
ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue