mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Fix: %tmpfiles_create not being run (services fail to start till reboot)
This commit is contained in:
parent
85d27409b9
commit
43927d6922
1 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
Version: %{major_version}%{patch_version}
|
Version: %{major_version}%{patch_version}
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
|
||||||
License: Distributable
|
License: Distributable
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
|
@ -277,7 +277,7 @@ install -m 0644 contrib/ldap/dhcp.schema %{buildroot}%{schema_dir}
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
%_post_service dhcpd
|
%_post_service dhcpd
|
||||||
%tmpfiles_create dhcpd
|
%tmpfiles_create dhcpd.conf
|
||||||
# New dhcpd lease file
|
# New dhcpd lease file
|
||||||
if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then
|
if [ ! -f %{_var}/lib/dhcpd/dhcpd.leases ]; then
|
||||||
touch %{_var}/lib/dhcpd/dhcpd.leases
|
touch %{_var}/lib/dhcpd/dhcpd.leases
|
||||||
|
@ -288,14 +288,14 @@ fi
|
||||||
|
|
||||||
%post relay
|
%post relay
|
||||||
%_post_service dhcrelay
|
%_post_service dhcrelay
|
||||||
%tmpfiles_create dhcrelay
|
%tmpfiles_create dhcrelay.conf
|
||||||
|
|
||||||
%preun relay
|
%preun relay
|
||||||
%_preun_service dhcrelay
|
%_preun_service dhcrelay
|
||||||
|
|
||||||
%post client
|
%post client
|
||||||
touch %{_var}/lib/dhclient/dhclient.leases
|
touch %{_var}/lib/dhclient/dhclient.leases
|
||||||
%tmpfiles_create dhclient
|
%tmpfiles_create dhclient.conf
|
||||||
|
|
||||||
%postun client
|
%postun client
|
||||||
rm -rf %{_var}/lib/dhclient/dhclient.leases
|
rm -rf %{_var}/lib/dhclient/dhclient.leases
|
||||||
|
|
Loading…
Add table
Reference in a new issue