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