Skip to content

Commit

Permalink
pkg/kamailio/oracle: wait for network to be up
Browse files Browse the repository at this point in the history
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@sv01.de>
(cherry picked from commit 37c2e5c)
  • Loading branch information
kevin-olbrich authored and linuxmaniac committed Nov 8, 2018
1 parent 33fb7ac commit 9bc520a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
Expand Down

0 comments on commit 9bc520a

Please sign in to comment.