[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#882504: Problem still exists



Hi,

On my systems I have two ethernet devices, only one is connected.
And thus I have excluded one in the systemd configuration, as you can
see below.

This is mainly to avoid the needless timeout during boot up.

apt-helper however is ignoring this configuration and it is causing
unnecessary errors in my syslog.

Nov 16 04:30:24 luts systemd[1]: Starting Daily apt download activities...
Nov 16 04:30:54 luts systemd-networkd-wait-online[993706]: Event loop
failed: Connection timed out
Nov 16 04:30:54 luts apt-helper[993698]: E: Sub-process
/lib/systemd/systemd-networkd-wait-online returned an error code (1)

apt-helper is simply running /lib/systemd/systemd-networkd-wait-online
directly
without looking at the systemd configuration.

I'm not familiar enough with systemctl to know whether there is a better
alternative.
Perhaps: systemctl -q is-active systemd-networkd-wait-online


# systemctl cat systemd-networkd-wait-online
# /lib/systemd/system/systemd-networkd-wait-online.service
#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Wait for Network to be Configured
Documentation=man:systemd-networkd-wait-online.service(8)
DefaultDependencies=no
Conflicts=shutdown.target
Requires=systemd-networkd.service
After=systemd-networkd.service
Before=network-online.target shutdown.target

[Service]
Type=oneshot
ExecStart=/lib/systemd/systemd-networkd-wait-online
RemainAfterExit=yes

[Install]
WantedBy=network-online.target

# /etc/systemd/system/systemd-networkd-wait-online.service.d/nowait.conf
[Service]
ExecStart=
ExecStart=/lib/systemd/systemd-networkd-wait-online --ignore=eno2 --quiet


Reply to: