]> granicus.if.org Git - icinga2/commitdiff
fixes #6758 6762/head
authorSchanz, Jens <jens.schanz@mueller.de>
Fri, 9 Nov 2018 12:17:08 +0000 (13:17 +0100)
committerSchanz, Jens <jens.schanz@mueller.de>
Fri, 9 Nov 2018 12:17:08 +0000 (13:17 +0100)
Add target network-online.target as requirement.
Service Icinga2 won't start before target is finally reached.
This prevents Icinga2 from failing if no entry for hostname.domain
is set in /etc/hosts

etc/initsystem/icinga2.service.cmake

index 9c7d817484aa9642fc1c764ede9bfda4d73a8f0f..834a1fc185b266c890a03b70468e079db4dbe456 100644 (file)
@@ -1,5 +1,6 @@
 [Unit]
 Description=Icinga host/service/network monitoring system
+Requires=network-online.target
 After=syslog.target network-online.target postgresql.service mariadb.service carbon-cache.service carbon-relay.service
 
 [Service]