mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 21:42: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_service dhcpd
|
||||
%tmpfiles_create dhcpd
|
||||
/bin/systemd-tmpfiles --create dhcpd
|
||||
# %tmpfiles_create dhcpd
|
||||
# New dhcpd lease file
|
||||
if [ ! -f %{_localstatedir}/lib/dhcp/dhcpd.leases ]; then
|
||||
touch %{_localstatedir}/lib/dhcp/dhcpd.leases
|
||||
|
@ -268,13 +269,15 @@ fi
|
|||
|
||||
%post relay
|
||||
%_post_service dhcrelay
|
||||
%tmpfiles_create dhcrelay
|
||||
/bin/systemd-tmpfiles --create dhcrelay
|
||||
# %tmpfiles_create dhcrelay
|
||||
|
||||
%preun relay
|
||||
%_preun_service dhcrelay
|
||||
|
||||
%post client
|
||||
%tmpfiles_create dhclient
|
||||
/bin/systemd-tmpfiles --create dhclient
|
||||
# %tmpfiles_create dhclient
|
||||
touch %{_localstatedir}/lib/dhclient/dhclient.leases
|
||||
|
||||
%postun client
|
||||
|
|
|
@ -4,7 +4,7 @@ After=syslog.target network.target
|
|||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/sysconfig/dhcpd
|
||||
ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $INTERFACES
|
||||
ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Add table
Reference in a new issue