Fix #136: drop old init client tool

The SysV API compatibility layer gives too little value to be worth
the effort of maintaining it. Users are encouraged to use the
`initctl` tool instead.

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval committed 2021-02-11 17:52:08 +01:00
1 parent eb6ac5ee22
commit cb64c068e3
13 files changed
+20 -422

No files matched your search

+6 -6
View File
@@ -368,12 +368,12 @@ int main(int argc, char *argv[])
};
uev_ctx_t loop;
/*
* finit/init/telinit client tool uses /dev/initctl pipe
* for compatibility but initctl client tool uses socket
*/
if (getpid() != 1)
return client(argc, argv);
if (getpid() != 1) {
fprintf(stderr, "Running Finit as anything other than PID 1 "
"is not supported.\n"
"The initctl tool is the new command line API.\n");
return 1;
}
/*
* Need /dev, /proc, and /sys for console=, remount and cgroups