[systemd-commits] src/sysv-generator
Lukas Nykryn
lnykryn at kemper.freedesktop.org
Wed Jul 30 01:26:26 PDT 2014
src/sysv-generator/sysv-generator.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 805b573fad06b845502e76f3db3a0efa7583149d
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Jul 23 12:49:14 2014 +0200
sysv: order initscripts which provide $network before network.target
Due to recent changes where $network "maps" to network-online.target
it is not guaranteed that initscript which provides networking will
be terminated after network.target during shutdown which is against LSB.
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index 5206279..9a869ba 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -482,6 +482,11 @@ static int load_sysv(SysvStub *s) {
r = strv_extend(&s->wants, m);
if (r < 0)
return log_oom();
+ if (streq(m, SPECIAL_NETWORK_ONLINE_TARGET)) {
+ r = strv_extend(&s->before, SPECIAL_NETWORK_TARGET);
+ if (r < 0)
+ return log_oom();
+ }
}
if (r < 0)
More information about the systemd-commits
mailing list