mirror of
https://github.com/troglobit/finit.git
synced 2026-11-12 16:51:25 +00:00
Fix #123: Regression in sysv start/stop scripts
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
1e238eec61
commit
0a54a9624a
1 file changed
+2
-2
+2
-2
@@ -484,9 +484,9 @@ int run_parts(char *dir, char *cmd)
|
|||||||
/* Check if S<NUM>service or K<NUM>service notation is used */
|
/* Check if S<NUM>service or K<NUM>service notation is used */
|
||||||
_d("Checking if %s is a sysvinit startstop script ...", name);
|
_d("Checking if %s is a sysvinit startstop script ...", name);
|
||||||
if (name[0] == 'S' && isdigit(name[1]))
|
if (name[0] == 'S' && isdigit(name[1]))
|
||||||
strlcat(path, "start", sizeof(path));
|
strlcat(path, " start", sizeof(path));
|
||||||
else if (name[0] == 'K' && isdigit(name[1]))
|
else if (name[0] == 'K' && isdigit(name[1]))
|
||||||
strlcat(path, "stop", sizeof(path));
|
strlcat(path, " stop", sizeof(path));
|
||||||
} else {
|
} else {
|
||||||
strlcat(path, cmd, sizeof(path));
|
strlcat(path, cmd, sizeof(path));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user