mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
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.
This commit is contained in:
Notes:
Lennart Poettering
2014-08-19 21:06:39 +02:00
Backport: bugfix
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user