Explorar o código

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 <[email protected]>
Kevin Olbrich %!s(int64=6) %!d(string=hai) anos
pai
achega
37c2e5ca25
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      pkg/kamailio/oracle/el7/kamailio.service

+ 2 - 1
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