mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-29 13:25:27 +03:00
service: remove distribution specific comments, the code runs unconditional now
This commit is contained in:
parent
85a3fa0e19
commit
20771ae336
@ -1012,14 +1012,14 @@ static int service_load_sysv_name(Service *s, const char *name) {
|
|||||||
r = service_load_sysv_path(s, path);
|
r = service_load_sysv_path(s, path);
|
||||||
|
|
||||||
if (r >= 0 && UNIT(s)->load_state == UNIT_STUB) {
|
if (r >= 0 && UNIT(s)->load_state == UNIT_STUB) {
|
||||||
/* Try Debian style *.sh source'able init scripts */
|
/* Try *.sh source'able init scripts */
|
||||||
strcat(path, ".sh");
|
strcat(path, ".sh");
|
||||||
r = service_load_sysv_path(s, path);
|
r = service_load_sysv_path(s, path);
|
||||||
}
|
}
|
||||||
free(path);
|
free(path);
|
||||||
|
|
||||||
if (r >= 0 && UNIT(s)->load_state == UNIT_STUB) {
|
if (r >= 0 && UNIT(s)->load_state == UNIT_STUB) {
|
||||||
/* Try Frugalware style rc.* init scripts */
|
/* Try rc.* init scripts */
|
||||||
|
|
||||||
path = strjoin(*p, "/rc.", name, NULL);
|
path = strjoin(*p, "/rc.", name, NULL);
|
||||||
if (!path)
|
if (!path)
|
||||||
|
Loading…
Reference in New Issue
Block a user