]>
Commit | Line | Data |
---|---|---|
19e6c1c7 JB |
1 | --- systemd-215/src/sysv-generator/sysv-generator.c~ 2012-01-26 00:12:06.239561034 +0100 |
2 | +++ systemd-215/src/sysv-generator/sysv-generator.c 2012-01-26 18:26:15.476825041 +0100 | |
663b637e JR |
3 | @@ -516,6 +516,13 @@ |
4 | line++; | |
5 | ||
6 | t = strstrip(l); | |
b83a65eb | 7 | + // PLD specific ugly hack to detect SysV services requiring network |
663b637e | 8 | + if (startswith_no_case(t, ". /etc/sysconfig/network")) { |
19e6c1c7 | 9 | + r = strv_extend(&s->wants, "network.target"); |
663b637e JR |
10 | + |
11 | + if (r < 0) | |
19e6c1c7 | 12 | + log_error("[%s:%u] Failed to add dependency on network.target, ignoring: %s", s->path, line, strerror(-r)); |
663b637e | 13 | + } |
618c1d39 JR |
14 | if (*t != '#') { |
15 | /* Try to figure out whether this init script supports | |
16 | * the reload operation. This heuristic looks for | |
4828ecaf ER |
17 | --- systemd-44/man/systemd.special.xml~ 2012-02-20 16:33:32.000000000 +0200 |
18 | +++ systemd-44/man/systemd.special.xml 2012-03-18 10:44:01.469494195 +0200 | |
19 | @@ -324,6 +324,10 @@ | |
20 | referring to the | |
21 | <literal>$network</literal> | |
22 | facility.</para> | |
23 | + | |
24 | + <para>PLD specific: also scripts with | |
25 | + <literal>. /etc/sysconfig/network</literal> | |
26 | + source line get the dependency.</para> | |
27 | </listitem> | |
28 | </varlistentry> | |
29 | <varlistentry> |