постоянно требуется руками запускать
судя по логам, в момент запуска нет сконфигуренного интерфейс virbr3
который поднимается после запуска virtxend.service
ну хорошоlocalhost:~ # systemctl status dhcpd
× dhcpd.service - ISC DHCPv4 Server
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Fri 2024-12-20 15:02:41 +07; 13min ago
Process: 1999 ExecStart=/usr/lib/dhcp/dhcpd -4 start (code=exited, status=1/FAILURE)
CPU: 368ms
дек 20 15:02:41 localhost.localdomain dhcpd[2174]: bugs on either our web page at www.isc.org or in the README file
дек 20 15:02:41 localhost.localdomain dhcpd[2174]: before submitting a bug. These pages explain the proper
дек 20 15:02:41 localhost.localdomain dhcpd[2174]: process and the information we find helpful for debugging.
дек 20 15:02:41 localhost.localdomain dhcpd[2174]:
дек 20 15:02:41 localhost.localdomain dhcpd[2174]: exiting.
дек 20 15:02:41 localhost.localdomain dhcpd[1999]: Starting ISC DHCPv4 Server
дек 20 15:02:41 localhost.localdomain dhcpd[1999]: please see /var/log/rc.dhcpd.log for details ..failed
дек 20 15:02:41 localhost.localdomain systemd[1]: dhcpd.service: Control process exited, code=exited, status=1/FAILURE
дек 20 15:02:41 localhost.localdomain systemd[1]: dhcpd.service: Failed with result 'exit-code'.
дек 20 15:02:41 localhost.localdomain systemd[1]: Failed to start ISC DHCPv4 Server.
localhost:~ # cat /var/log/rc.dhcpd.log
Internet Systems Consortium DHCP Server 4.3.6-P1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Config file: /etc/dhcpd.conf
Database file: /db/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 6 leases to leases file.
No subnet declaration for virbr3 (no IPv4 addresses).
** Ignoring requests on virbr3. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface virbr3 is attached. **
Not configured to listen on any interfaces!
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging.
exiting.
надо так надо...
добавляем в секцию After=remote-fs.target network.target nss-lookup.target time-sync.target slapd.service sssd.service ndsd.service virtxend.service
и всёравно, ниxера не стартует само! только после принудительного пенделя
Код: Выделить всё
systemctl start dhcpd