:: Re: [DNG] Boot hangs with new kerne…
Top Page
Delete this message
Reply to this message
Author: Alessandro Vesely
Date:  
To: Devuan users
Subject: Re: [DNG] Boot hangs with new kernel
On Tue 12/Nov/2024 22:41:33 +0100 Ludovic Bellière wrote:
>
> So there's a clue. You noted in another email that the issue occurs after a
> custom script to enable the network would launch. If your Ethernet cable is
> broken, or not plugged in, or if the endpoint your system is trying to talk to
> doesn't answer, you'll get a hang. Your system will wait for an answer until a
> predefined amount of time has elapsed, then give up and continue normally.
>
> You could initialize the network asynchronously, but wouldn't work for services
> that depends on it.



That's it. I had a dependency problem:

north:rc2.d# ls -1 *mynetwork *mariadb
S03mynetwork
S06mariadb

But ulogd is configured to log every connection on the database (that is needed because most web and mail log the origin port and address but not their own ones; as I have two network addresses, I need to know the target address of abusive connections in order to send complaints.) I have .legacy-bootordering, so there is a deadlock between setting up the network and starting mariadb.

For the database I have:

### BEGIN INIT INFO
# Provides:          mariadb
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $network $named $time
# Should-Stop:       $network $named $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start and stop the mysql database server daemon
# Description:       Controls the main MariaDB database server daemon "mariadbd"
#                    and its wrapper script "mysqld_safe".
### END INIT INFO


And for the network:

### BEGIN INIT INFO
# Provides:          mynetwork
# Required-Start:    $syslog $local_fs
# Required-Stop:     $syslog $local_fs
# Should-Start:      networking
# Should-Stop:       networking
# X-Start-Before:    courier-mta apache2 inetd bind9
# X-Stop-Before:     courier-mta apache2 inetd bind9
# Short-Description: Configure the network at boot time
# Description:       Configure the network at boot time, also set up firewall
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
#### END INIT INFO


Now I'm gonna fix that...


Best
Ale
--