mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Reduce debug noise from run_parts() slightly
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
a2ab45cad7
commit
67ea42c87b
1 file changed
+3
-2
+3
-2
@@ -473,14 +473,15 @@ int run_parts(char *dir, char *cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!S_ISEXEC(st.st_mode) || S_ISDIR(st.st_mode)) {
|
if (!S_ISEXEC(st.st_mode) || S_ISDIR(st.st_mode)) {
|
||||||
dbg("Skipping %s ...", path);
|
if (strcmp(name, ".") && strcmp(name, ".."))
|
||||||
|
dbg("Skipping %s ...", path);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the callee didn't supply a run_parts() argument */
|
/* If the callee didn't supply a run_parts() argument */
|
||||||
if (!cmd) {
|
if (!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 */
|
||||||
dbg("Checking if %s is a sysvinit startstop script ...", name);
|
// dbg("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]))
|
||||||
|
|||||||
Reference in new issue
Block a user