:: Re: [DNG] bootlogd: /var/log/boot d…
Kezdőlap
Delete this message
Reply to this message
Szerző: KatolaZ
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] bootlogd: /var/log/boot does not get rotated
On Sat, Mar 02, 2019 at 03:28:31PM +0100, Stefan Krusche wrote:
> Good day everyone,
>
> the file /var/log/boot on my system has now grown up to more than 1.2MB.
> It never got rotated since I installed this system (~ June 2018).
>
> I looked into /etc/init.d/bootlogd and there's apparently some code to
> rotate /var/log/boot under the "stop)" clause of the "case $ACTION"
> construct which does a check first (line 66):
>
>     if [ -f /var/log/boot ] && [ -f /var/log/boot~ ]
>     then
> […]

>
> after which the code follows which is supposed to rotate /var/log/boot
> IIUC.
>
> /var/log/boot~ doesn't exist. It obviously never had been created and
> therefore /var/log/boot isn't rotated, I think.
>
> I assume this to be a bug, but as I'm not familiar with the
> particularities of init scripts, I'd like to ask for your opinions
> about that issue here.
>


Stefan, bootlogd will always log the current boot in /var/log/boot
after having renamed it into /var/log/boot~. In this way you always
have the log of the current boot in /var/log/boot and the log of the
previous one in /var/log/boot~. So there should be no need to rotate
them.

HTH

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - Devuan -- Freaknet Medialab  ]  
[     "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[       @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[     @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]