From: Schanz, Jens Date: Fri, 9 Nov 2018 12:17:08 +0000 (+0100) Subject: fixes #6758 X-Git-Tag: v2.11.0-rc1~299^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F6762%2Fhead;p=icinga2 fixes #6758 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 --- diff --git a/etc/initsystem/icinga2.service.cmake b/etc/initsystem/icinga2.service.cmake index 9c7d81748..834a1fc18 100644 --- a/etc/initsystem/icinga2.service.cmake +++ b/etc/initsystem/icinga2.service.cmake @@ -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]