1 --- systemd-240/man/systemd.special.xml.orig 2019-01-13 09:31:46.448992299 +0100
2 +++ systemd-240/man/systemd.special.xml 2019-01-13 09:48:30.415647502 +0100
4 <varname>After=</varname> for this target unit to all SysV
5 init script service units with an LSB header referring to
6 the <literal>$portmap</literal> facility.</para>
8 + <para>PLD specific: also scripts with
9 + <literal>. /etc/sysconfig/network</literal>
10 + source line get the dependency.</para>
14 diff -dur -x '*.orig' systemd-218.orig/src/sysv-generator/sysv-generator.c systemd-218/src/sysv-generator/sysv-generator.c
15 --- systemd-218.orig/src/sysv-generator/sysv-generator.c 2014-12-05 01:26:51.000000000 +0100
16 +++ systemd-218/src/sysv-generator/sysv-generator.c 2015-04-03 15:02:21.000000000 +0200
21 + // PLD specific ugly hack to detect SysV services requiring network
22 + if (startswith_no_case(t, ". /etc/sysconfig/network")) {
23 + r = strv_extend(&s->wants, "network.target");
25 + log_error("[%s:%u] Failed to add dependency on network.target, ignoring: %s", s->path, line, strerror(-r));
26 + r = strv_extend(&s->after, "network.target");
28 + log_error("[%s:%u] Failed to add dependency on network.target, ignoring: %s", s->path, line, strerror(-r));
31 /* Try to figure out whether this init script supports
32 * the reload operation. This heuristic looks for