<html><body><div><div>I suspect that you are generally correct, but I modelled my entries on what was already in the file, which had ...</div><div><br></div></div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000"><span style="font-variant-ligatures: no-common-ligatures">After=network-online.target</span><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #000000"><span style="font-variant-ligatures: no-common-ligatures">After=time-sync.target</span><br></p><div><div><br></div><div>already defined over separate lines.<br></div><div><br></div><div>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.</div><div><br></div><div>Thank you for your help.<br></div><div><br></div><div>PeterP.</div><div><br></div><blockquote type="cite"><div>On 22 Sep 2021, at 15:04, perl-list <perl-list@network1.net> wrote:<br></div><div><br></div><div><br></div><div><div><div>I think you just want to have one After= line like so:<br></div><div><br></div><div>After=network-online.target time-sync.target mysql.service mariadb.service<br></div><div><br></div><div>at 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.<br></div><div><br></div><div>----- Original Message -----<br></div><blockquote type="cite"><div>From: "PeterP" <looms_pastels_0f_kea@icloud.com><br></div><div>To: "kea-users" <kea-users@lists.isc.org><br></div><div>Sent: Wednesday, September 22, 2021 9:44:02 AM<br></div><div>Subject: Re: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup Sequence<br></div></blockquote><div><br></div><blockquote type="cite">Made the change and rebooted and it seems to have worked.<br></blockquote><div><br></div><blockquote type="cite"><div>File is "/usr/lib/systemd/system/isc-kea-dhcp4-server.service". Not absolutely<br></div><div>sure this is the right file but it does seem to work.<br></div></blockquote><div><br></div><blockquote type="cite">Now looks like ...<br></blockquote><div><br></div><blockquote type="cite">[Unit]<br></blockquote><div><br></div><blockquote type="cite">Description=Kea IPv4 DHCP daemon<br></blockquote><div><br></div><blockquote type="cite">Documentation=man:kea-dhcp4(8)<br></blockquote><div><br></div><blockquote type="cite">Wants=network-online.target<br></blockquote><div><br></div><blockquote type="cite">After=network-online.target<br></blockquote><div><br></div><blockquote type="cite">After=time-sync.target<br></blockquote><div><br></div><blockquote type="cite">After=mysql.service<br></blockquote><div><br></div><blockquote type="cite">After=mariadb.service<br></blockquote><div><br></div><blockquote type="cite">[Service]<br></blockquote><div><br></div><blockquote type="cite">User=_kea<br></blockquote><div><br></div><blockquote type="cite">AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW<br></blockquote><div><br></div><blockquote type="cite">Environment="KEA_PIDFILE_DIR=/run/kea"<br></blockquote><div><br></div><blockquote type="cite">Environment="KEA_LOCKFILE_DIR=/run/lock/kea"<br></blockquote><div><br></div><blockquote type="cite">Environment="KEA_LOGGER_DESTINATION=/var/log/kea"<br></blockquote><div><br></div><blockquote type="cite">ConfigurationDirectory=kea<br></blockquote><div><br></div><blockquote type="cite">RuntimeDirectory=kea lock/kea<br></blockquote><div><br></div><blockquote type="cite">RuntimeDirectoryPreserve=yes<br></blockquote><div><br></div><blockquote type="cite">LogsDirectory=kea<br></blockquote><div><br></div><blockquote type="cite">LogsDirectoryMode=0750<br></blockquote><div><br></div><blockquote type="cite">StateDirectory=kea<br></blockquote><div><br></div><blockquote type="cite">ExecStart=/usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf<br></blockquote><div><br></div><blockquote type="cite">ExecReload=/bin/kill -HUP $MAINPID<br></blockquote><div><br></div><blockquote type="cite">[Install]<br></blockquote><div><br></div><blockquote type="cite">WantedBy=multi-user.target<br></blockquote><div><br></div><blockquote type="cite">Thank you,<br></blockquote><div><br></div><blockquote type="cite">PeterP.<br></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite">On 22 Sep 2021, at 14:35, perl-list <perl-list@network1.net> wrote:<br></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite">find /etc/ | grep isc-kea-dhcp4-server.service<br></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite">its in there somewhere I assume :)<br></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite">----- Original Message -----<br></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>From: "PeterP" <looms_pastels_0f_kea@icloud.com><br></div><div>To: "kea-users" <kea-users@lists.isc.org><br></div><div>Sent: Wednesday, September 22, 2021 9:32:58 AM<br></div><div>Subject: Re: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup Sequence<br></div></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hello,<br></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>Thank you, that aligns with what I had previously read, but I was struggling to<br></div><div>work out how to express the relevant commands.<br></div></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>I'll try your "After" clause in my isc-kea-dhcp4-server.service file (when I<br></div><div>find it) with the mysql.service and mariadb.service service entries only.<br></div></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Regards,<br></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">PeterP<br></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On 22 Sep 2021, at 14:26, perl-list <perl-list@network1.net> wrote:<br></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>I don't know for sure as I have so far managed to largely avoid "systemd" but do<br></div><div>have some small experience with it.<br></div></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">radiusd.service on one of my servers has this:<br></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>After=syslog.target network-online.target ipa.service dirsrv.target<br></div><div>krb5kdc.service mysql.service mariadb.service postgresql.service<br></div></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>meaning all of those .target or .service files would need to finish before it<br></div><div>starts radiusd.service<br></div></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>You can probably tailor your After= line to be more relevant to your<br></div><div>configuration.<br></div></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Someone correct me if there is a better way.<br></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">----- Original Message -----<br></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>From: "PeterP" <looms_pastels_0f_kea@icloud.com><br></div><div>To: "kea-users" <kea-users@lists.isc.org><br></div><div>Sent: Wednesday, September 22, 2021 8:42:32 AM<br></div><div>Subject: [Kea-users] ISC-KEA with MariaDB on Debian Buster Startup Sequence<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hello,<br></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I think this is somewhat of a Linux newbie question, so apologies.<br></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>I have PowerDNS, KEA (DHCP4 only), and Stork running on Debian Buster all using<br></div><div>MariaDB as the back-end. Everything is up to date as regards versions, at least<br></div><div>as far as I am aware, as I run global updates every few days.<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>I am having a problem with the isc-kea-dhcp4-server.service. Whenever there is a<br></div><div>system reboot, this service fails to start. When I manually restart it later,<br></div><div>it works fine. As far as I can trace, it's a startup sequence issue in relation<br></div><div>to having MariaDB as a back-end for Kea. I looks like Kea is starting first,<br></div><div>looking for the MariaDB service and failing because MariaDB has yet to start.<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>How can I change the start order so that the isc-kea-dhcp4-server.service<br></div><div>doesn't start until the MariaDB service is up and running?<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>I expect I will have the same issue with the isc-kea-dhcp6-server.service when I<br></div><div>eventually start to use it.<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Thank you,<br></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">PeterP.<br></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>_______________________________________________<br></div><div>ISC funds the development of this software with paid support subscriptions.<br></div><div>Contact us at https://www.isc.org/contact/ for more information.<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>Kea-users mailing list<br></div><div>Kea-users@lists.isc.org<br></div><div>https://lists.isc.org/mailman/listinfo/kea-users<br></div></blockquote></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>_______________________________________________<br></div><div>ISC funds the development of this software with paid support subscriptions.<br></div><div>Contact us at https://www.isc.org/contact/ for more information.<br></div></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>Kea-users mailing list<br></div><div>Kea-users@lists.isc.org<br></div><div>https://lists.isc.org/mailman/listinfo/kea-users<br></div></blockquote></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>_______________________________________________<br></div><div>ISC funds the development of this software with paid support subscriptions.<br></div><div>Contact us at https://www.isc.org/contact/ for more information.<br></div></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>Kea-users mailing list<br></div><div>Kea-users@lists.isc.org<br></div><div>https://lists.isc.org/mailman/listinfo/kea-users<br></div></blockquote></blockquote></blockquote><div><br></div><blockquote type="cite"><div>_______________________________________________<br></div><div>ISC funds the development of this software with paid support subscriptions.<br></div><div>Contact us at https://www.isc.org/contact/ for more information.<br></div></blockquote><div><br></div><blockquote type="cite">To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br></blockquote><div><br></div><blockquote type="cite"><div>Kea-users mailing list<br></div><div>Kea-users@lists.isc.org<br></div><div>https://lists.isc.org/mailman/listinfo/kea-users<br></div></blockquote><div>_______________________________________________<br></div><div>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br></div><div><br></div><div>To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br></div><div><br></div><div>Kea-users mailing list<br></div><div>Kea-users@lists.isc.org<br></div><div>https://lists.isc.org/mailman/listinfo/kea-users<br></div></div></div></blockquote></div><div><br></div></body></html>