From 37c2e5ca25cb3396d2ac969271f9f9330d88fd63 Mon Sep 17 00:00:00 2001 From: Kevin Olbrich Date: Thu, 8 Nov 2018 18:01:03 +0100 Subject: [PATCH] pkg/kamailio/oracle: wait for network to be up 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. https://www.freedesktop.org/software/systemd/man/systemd.special.html https://lists.kamailio.org/pipermail/sr-users/2018-November/103668.html Signed-off-by: Kevin Olbrich --- pkg/kamailio/oracle/el7/kamailio.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kamailio/oracle/el7/kamailio.service b/pkg/kamailio/oracle/el7/kamailio.service index 63d6da747c0..8192488b537 100644 --- a/pkg/kamailio/oracle/el7/kamailio.service +++ b/pkg/kamailio/oracle/el7/kamailio.service @@ -1,6 +1,7 @@ [Unit] Description=Kamailio SIP router server daemon -After=syslog.target network.target auditd.service +Wants=network-online.target +After=syslog.target network-online.target auditd.service [Service] EnvironmentFile=/etc/sysconfig/kamailio