On Sat, 08 Nov 2014 22:10:07 +1030 Arthur Marsh <[email protected]> wrote:
Package: bootlogd
Version: 2.88dsf-57
Severity: important
...
   * What led up to the situation?

No idea, but bootlog resumed working in mid-2014 but has kept writing to the
same file.

Hi,

Here is a patch for bootlogd version 2.88dsf-59,

===================================================================
RCS file: /etc/init.d/RCS/bootlogd,v
retrieving revision 1.1
diff -p -t -u -r1.1 /etc/init.d/bootlogd
--- /etc/init.d/bootlogd        2016-07-15 08:39:57-04  1.1
+++ /etc/init.d/bootlogd        2012-03-02 13:43:00-05
@@ -60,18 +60,12 @@ case "$ACTION" in
         [ "$VERBOSE" != no ] && log_end_msg $ES
         if [ -r "$TMPLOG" ]
         then
-                cat "$TMPLOG" >> /var/log/boot
-                rm -f "$TMPLOG"
-        fi
-        if [ -f /var/log/boot ] && [ -f /var/log/boot~ ]
-        then
[ "$VERBOSE" = no ] || log_action_begin_msg "Moving boot log file"
-                # bootlogd writes to boot, making backup at boot~
+                # bootlogd writes to $TMPLOG, making no backup in /run !
                 cd /var/log && {
-                        chgrp adm boot || :
-                        savelog -q -p -c 5 boot \
-                        && mv boot.0 boot \
-                        && mv boot~ boot.0
+                        savelog -q -m 0640 -u root -g adm -t -c 10 boot
+                        cat "$TMPLOG" >> boot
+                        rm -f "$TMPLOG"
                 }
                 ES=$?
                 [ "$VERBOSE" = no ] || log_action_end_msg $ES

Regards,
--
Jeffrey Sheinberg

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to