Add convenient SysV init /etc/rc.local compat

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-07-15 13:17:09 +02:00
1 parent 8f9ea0ae57
commit 48e2cbd183
3 files changed
+31

No files matched your search

+4
View File
@@ -215,6 +215,10 @@ int main(int argc, char* argv[])
run_parts(runparts, NULL);
}
/* Convenient SysV compat for when you just don't care ... */
if (!access(FINIT_RC_LOCAL, X_OK))
run_interactive(FINIT_RC_LOCAL, "Calling SysV style rc.local: %s", FINIT_RC_LOCAL);
/* Hooks that should run at the very end */
plugin_run_hooks(HOOK_SYSTEM_UP);