[sr-dev] git:master:37c2e5ca: pkg/kamailio/oracle: wait for network to be up
Victor Seva
linuxmaniac at torreviejawireless.org
Thu Nov 8 18:02:38 CET 2018
Module: kamailio
Branch: master
Commit: 37c2e5ca25cb3396d2ac969271f9f9330d88fd63
URL: https://github.com/kamailio/kamailio/commit/37c2e5ca25cb3396d2ac969271f9f9330d88fd63
Author: Kevin Olbrich <ko at sv01.de>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2018-11-08T18:02:32+01:00
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 <ko at sv01.de>
---
Modified: pkg/kamailio/oracle/el7/kamailio.service
---
Diff: https://github.com/kamailio/kamailio/commit/37c2e5ca25cb3396d2ac969271f9f9330d88fd63.diff
Patch: https://github.com/kamailio/kamailio/commit/37c2e5ca25cb3396d2ac969271f9f9330d88fd63.patch
---
diff --git a/pkg/kamailio/oracle/el7/kamailio.service b/pkg/kamailio/oracle/el7/kamailio.service
index 63d6da747c..8192488b53 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
More information about the sr-dev
mailing list