mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
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:
1 parent
eb6ac5ee22
commit
cb64c068e3
13 files changed
+20
-422
No files matched your search
+6
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user