aboutsummaryrefslogtreecommitdiff
path: root/src/rc-logger.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-31 15:46:56 +0000
committerRoy Marples <roy@marples.name>2007-10-31 15:46:56 +0000
commit7cd70aee4d62015283a1191b354c9c91dc343bbf (patch)
treeddd360658ca9b574505d6b670ee4a6b8c69d33c0 /src/rc-logger.h
parentfeed4b4c90e92996a19e7d8da70909c6e38f2124 (diff)
You can now log baselayout-2 again, through the RC_LOGGER conf.d/rc
setting. The log is temp stored in /lib/rc/init.d/rc.log and appended to /var/log/rc.log if it's writeable. sysinit cannot be logged in Linux as we rely on sysinit to bring the system up to a point where we can log. single user cannot be logged on FreeBSD due to waitpid(0,0,0) incorrectly waiting for the log daemon in another process group.
Diffstat (limited to 'src/rc-logger.h')
-rw-r--r--src/rc-logger.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rc-logger.h b/src/rc-logger.h
new file mode 100644
index 00000000..1c58c328
--- /dev/null
+++ b/src/rc-logger.h
@@ -0,0 +1,11 @@
+/*
+ rc-logger.h
+ Copyright 2007 Gentoo Foundation
+ */
+
+pid_t rc_logger_pid;
+int rc_logger_tty;
+extern bool rc_in_logger;
+
+void rc_logger_open (const char *runlevel);
+void rc_logger_close ();