diff options
author | Roy Marples <roy@marples.name> | 2007-10-31 15:46:56 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-31 15:46:56 +0000 |
commit | 7cd70aee4d62015283a1191b354c9c91dc343bbf (patch) | |
tree | ddd360658ca9b574505d6b670ee4a6b8c69d33c0 /init.d | |
parent | feed4b4c90e92996a19e7d8da70909c6e38f2124 (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 'init.d')
-rwxr-xr-x | init.d/halt.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh index f94f4d28..74b67aa1 100755 --- a/init.d/halt.sh +++ b/init.d/halt.sh @@ -44,15 +44,18 @@ if mountinfo -q "${RC_SVCDIR}" && [ -w "${RC_LIBDIR}" ] ; then fi cp -p "${RC_SVCDIR}"/deptree "${RC_SVCDIR}"/depconfig \ "${RC_SVCDIR}"/softlevel "${RC_SVCDIR}"/nettree \ + "${RC_SVCDIR}"/rc.log \ "${RC_LIBDIR}" 2>/dev/null umount "${RC_SVCDIR}" rm -rf "${RC_SVCDIR}"/* # Pipe errors to /dev/null as we may have future timestamps cp -p "${RC_LIBDIR}"/deptree "${RC_LIBDIR}"/depconfig \ "${RC_LIBDIR}"/softlevel "${RC_LIBDIR}"/nettree \ + "${RC_LIBDIR}"/rc.log \ "${RC_SVCDIR}" 2>/dev/null rm -f "${RC_LIBDIR}"/deptree "${RC_LIBDIR}"/depconfig \ - "${RC_LIBDIR}"/softlevel "${RC_LIBDIR}"/nettree + "${RC_LIBDIR}"/softlevel "${RC_LIBDIR}"/nettree \ + "${RC_LIBDIR}"/rc.log # Release the memory disk if we used it case "${mnt}" in "/dev/md"[0-9]*) mdconfig -d -u "${mnt#/dev/md*}" ;; |