I suspect that you are generally correct, but I modelled my entries on what was already in the file, which had ...After=network-online.targetAfter=time-sync.targetalready defined over separate lines.I'll monitor it over the next week or so and if it
starts failing to start again. If it does, I'll try putting the entries on a single line as you have recommended.Thank you for your help.PeterP.On 22 Sep 2021, at 15:04, perl-list <[email protected]> wrote:I think you just want to have one
After= line like so:After=network-online.target time-sync.target mysql.service mariadb.serviceat least thats how the radiusd.service file was on our server here. This is on Redhat Enterprise Linux 8.x but it should be similar systemd
implementations.----- Original Message -----From: "PeterP" <[email protected]>To: "kea-users" <[email protected]>Sent: Wednesday, September 22, 2021 9:44:02 AMSubject: Re: [Kea-users] ISC-KEA with
MariaDB on Debian Buster Startup SequenceMade the change and rebooted and it seems to have worked.File is "/usr/lib/systemd/system/isc-kea-dhcp4-server.service". Not absolutelysure this is the right file but it does seem to work.Now looks like
...[Unit]Description=Kea IPv4 DHCP daemonDocumentation=man:kea-dhcp4(8)Wants=network-online.targetAfter=network-online.targetAfter=time-sync.targetAfter=mysql.serviceAfter=mariadb.service[Service]User=_keaAmbientCapabilities=CAP_NET_BIND_SERVICE
CAP_NET_RAWEnvironment="KEA_PIDFILE_DIR=/run/kea"Environment="KEA_LOCKFILE_DIR=/run/lock/kea"Environment="KEA_LOGGER_DESTINATION=/var/log/kea"ConfigurationDirectory=keaRuntimeDirectory=kea
lock/keaRuntimeDirectoryPreserve=yesLogsDirectory=keaLogsDirectoryMode=0750StateDirectory=keaExecStart=/usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.confExecReload=/bin/kill -HUP $MAINPID[Install]WantedBy=multi-user.targetThank you,PeterP.On 22 Sep 2021, at
14:35, perl-list <[email protected]> wrote:find /etc/ | grep isc-kea-dhcp4-server.serviceits in there somewhere I assume :)----- Original Message -----From: "PeterP" <[email protected]>To: "kea-users"
<[email protected]>Sent: Wednesday, September 22, 2021 9:32:58 AMSubject: Re: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup SequenceHello,Thank you, that aligns with what I had previously read, but I was struggling towork out how
to express the relevant commands.I'll try your "After" clause in my isc-kea-dhcp4-server.service file (when Ifind it) with the mysql.service and mariadb.service service entries only.Regards,PeterPOn 22 Sep 2021, at 14:26, perl-list
<[email protected]> wrote:I don't know for sure as I have so far managed to largely avoid "systemd" but dohave some small experience with it.radiusd.service on one of my servers has this:After=syslog.target network-online.target
ipa.service dirsrv.targetkrb5kdc.service mysql.service mariadb.service postgresql.servicemeaning all of those .target or .service files would need to finish before itstarts radiusd.serviceYou can probably tailor your After= line to be more relevant to
yourconfiguration.Someone correct me if there is a better way.----- Original Message -----From: "PeterP" <[email protected]>To: "kea-users" <[email protected]>Sent: Wednesday, September 22, 2021
8:42:32 AMSubject: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup SequenceHello,I think this is somewhat of a Linux newbie question, so apologies.I have PowerDNS, KEA (DHCP4 only), and Stork running on Debian Buster all usingMariaDB as the
back-end. Everything is up to date as regards versions, at leastas far as I am aware, as I run global updates every few days.I am having a problem with the isc-kea-dhcp4-server.service. Whenever there is asystem reboot, this service fails to start. When
I manually restart it later,it works fine. As far as I can trace, it's a startup sequence issue in relationto having MariaDB as a back-end for Kea. I looks like Kea is starting first,looking for the MariaDB service and failing because MariaDB has yet to
start.How can I change the start order so that the isc-kea-dhcp4-server.servicedoesn't start until the MariaDB service is up and running?I expect I will have the same issue with the isc-kea-dhcp6-server.service when Ieventually start to use it.Thank
you,PeterP._______________________________________________ISC funds the development of this software with paid support subscriptions.Contact us at https://www.isc.org/contact/ for more information.To unsubscribe visit
https://lists.isc.org/mailman/listinfo/kea-users.Kea-users mailing [email protected]https://lists.isc.org/mailman/listinfo/kea-users_______________________________________________ISC funds the development of this software with paid support
subscriptions.Contact us at https://www.isc.org/contact/ for more information.To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.Kea-users mailing
[email protected]https://lists.isc.org/mailman/listinfo/kea-users_______________________________________________ISC funds the development of this software with paid support subscriptions.Contact us at https://www.isc.org/contact/ for more
information.To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.Kea-users mailing [email protected]https://lists.isc.org/mailman/listinfo/kea-users_______________________________________________ISC funds the development of
this software with paid support subscriptions.Contact us at https://www.isc.org/contact/ for more information.To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.Kea-users mailing
[email protected]https://lists.isc.org/mailman/listinfo/kea-users_______________________________________________ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more
information.To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.Kea-users mailing [email protected]https://lists.isc.org/mailman/listinfo/kea-users
_______________________________________________
ISC funds the development of this software with paid support subscriptions.
Contact us at https://www.isc.org/contact/ for more information.
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users