Your message dated Tue, 23 Oct 2018 15:44:56 +0200
with message-id <[email protected]>
and subject line Re: [Pkg-nagios-devel] Bug#911676: .service file needs to
define Wants=network-online.target in addition of After=network-online.target
has caused the Debian Bug report #911676,
regarding .service file needs to define Wants=network-online.target in addition
of After=network-online.target
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
911676: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911676
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: icinga2
Version: 2.10.1-1
Severity: normal
Hi,
If you really want to have icinga started after the network connection
is active, you also need to set Wants=network-online.target in addition
of After=network-online.target
See (in systemd.special(7)):
network-online.target
Units that strictly require a configured network connection should
pull in network-online.target (via a Wants= type dependency) and order
themselves after it. This target unit is intended to
pull in a service that delays further execution until the network is
sufficiently set up. What precisely this requires is left to the implementation
of the network managing service.
Kind regards,
Laurent Bigonville
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1,
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy
--- End Message ---
--- Begin Message ---
On 2018-10-23 15:30, Laurent Bigonville wrote:
If you really want to have icinga started after the network connection
is active, you also need to set Wants=network-online.target in addition
of After=network-online.target
See (in systemd.special(7)):
network-online.target
Units that strictly require a configured network connection
should pull in network-online.target (via a Wants= type dependency)
and order themselves after it. This target unit is intended to
pull in a service that delays further execution until the
network is sufficiently set up. What precisely this requires is left
to the implementation of the network managing service.
The related documentation [0] also says:
"
It is strongly recommended not to pull in this target too liberally:
for example network server software should generally not pull this in
(since server software generally is happy to accept local connections
even before any routable network interface is up), its primary purpose
is network client software that cannot operate without network.
"
So I don't think we should add the Wants, because icinga2 can (also)
operate without network.
[0] https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
Kind Regards,
Bas
--- End Message ---