]> git.pld-linux.org Git - packages/systemd.git/blame - pld-sysv-network.patch
- as /sbin/service redirects to systemd, should not use it in .service files to avoid...
[packages/systemd.git] / pld-sysv-network.patch
CommitLineData
663b637e
JR
1--- systemd-38/src/service.c~ 2012-01-26 00:12:06.239561034 +0100
2+++ systemd-38/src/service.c 2012-01-26 18:26:15.476825041 +0100
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
JR
8+ if (startswith_no_case(t, ". /etc/sysconfig/network")) {
9+ r = unit_add_dependency_by_name(UNIT(s), UNIT_REQUIRES | UNIT_AFTER, "network.target", NULL, true);
10+
11+ if (r < 0)
12+ log_error("[%s:%u] Failed to add dependency on network.target, ignoring: %s", path, line, strerror(-r));
13+ }
14 if (*t != '#')
15 continue;
16
This page took 0.08844 seconds and 4 git commands to generate.