diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-04 22:51:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-04 22:51:16 +0200 |
commit | 0fd030bea1afa032d9afc791db4165a6848604b8 (patch) | |
tree | 0768b3e5b7784cb829b0e19270ac9d88fe0bd7a4 /service.c | |
parent | 8cb45bf8df4d1fab4386bce349a1437443a9b0eb (diff) |
sysv: require sysinit.service from all sysv services
Diffstat (limited to 'service.c')
-rw-r--r-- | service.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -481,6 +481,10 @@ static int service_load_sysv_path(Service *s, const char *path) { if ((r = sysv_exec_commands(s)) < 0) goto finish; + if ((r = unit_add_dependency_by_name(u, UNIT_REQUIRES, SPECIAL_SYSINIT_SERVICE)) < 0 || + (r = unit_add_dependency_by_name(u, UNIT_AFTER, SPECIAL_SYSINIT_SERVICE)) < 0) + goto finish; + r = 1; finish: |