[Pkg-nagios-devel] Bug#911676: .service file needs to define Wants=network-online.target in addition of After=network-online.target
Laurent Bigonville
bigon at debian.org
Tue Oct 23 14:30:47 BST 2018
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
More information about the Pkg-nagios-devel
mailing list