Skip to content

Add ordering dependencies to d/conntrackd.service

I noticed that sometimes, conntrackd logs the following error on startup:

Nov 21 18:28:33 server.domain conntrackd[666]: [Thu Nov 21 18:28:33 2024] (pid=666) [warning] bond0 is an invalid interface

Obviously systemd is trying to start the unit way too early. The init script has the following ordering dependencies:

# Required-Start:    $network $syslog $remote_fs
# Required-Stop:     $network $syslog $remote_fs

I think conntrackd.service also needs similar dependencies, and this is my suggestion.

The ordering before keepalived.service is for people using the primary-backup.sh script, which when called from keepalived notify hooks expects conntrackd to be already running.

Merge request reports

Loading