Commit 0c565ed7 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

service: interpret suse/debian style X-Start-Before/X-Start-After

parent 8640e111
...@@ -516,7 +516,9 @@ static int service_load_sysv_path(Service *s, const char *path) { ...@@ -516,7 +516,9 @@ static int service_load_sysv_path(Service *s, const char *path) {
} }
} else if (startswith(t, "Required-Start:") || } else if (startswith(t, "Required-Start:") ||
startswith(t, "Should-Start:")) { startswith(t, "Should-Start:") ||
startswith(t, "X-Start-Before:") ||
startswith(t, "X-Start-After:")) {
char *i, *w; char *i, *w;
size_t z; size_t z;
...@@ -539,7 +541,7 @@ static int service_load_sysv_path(Service *s, const char *path) { ...@@ -539,7 +541,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
if (r == 0) if (r == 0)
continue; continue;
r = unit_add_dependency_by_name(u, UNIT_AFTER, m, NULL, true); r = unit_add_dependency_by_name(u, startswith(t, "X-Start-Before:") ? UNIT_BEFORE : UNIT_AFTER, m, NULL, true);
free(m); free(m);
if (r < 0) if (r < 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment