mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
initctl: add hidden command line option -d,--debug
For developer use only. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
0168b765c1
commit
23a13fe1b6
4 files changed
+23
-3
No files matched your search
+2
-1
@@ -257,7 +257,8 @@ int do_disable(char *arg, int check)
|
||||
|
||||
if (chdir(FINIT_RCSD))
|
||||
err(1, "failed cd %s", FINIT_RCSD);
|
||||
(void)chdir("enabled"); /* System *may* have enabled/ dir. */
|
||||
if (chdir("enabled")) /* System *may* have enabled/ dir. */
|
||||
dbg("Failed changing to %s/enabled/: %s", FINIT_RCSD, strerror(errno));
|
||||
|
||||
if (check && stat(arg, &st))
|
||||
errx(1, "%s not (an) enabled (service).", arg);
|
||||
|
||||
Reference in new issue
Block a user