logrotate z-way-server has wrong file mode

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
ibjr
Posts: 18
Joined: 05 May 2016 21:52

logrotate z-way-server has wrong file mode

Post by ibjr » 14 Sep 2019 13:11

After installing R3.0.0 the log file var/log/z-way-server does not rotate anymore so the file keeps growing in size over time.
It turns out that the mode of file /etc/logrotate.d/z-way-server is 0664.
Logrotate requires file mode 0644 or 0444

Manually changing the file mode solves the problem, but maybe this can be included in the installation scripts?

micky1500
Posts: 90
Joined: 07 Feb 2016 16:29

Re: logrotate z-way-server has wrong file mode

Post by micky1500 » 14 Sep 2019 13:48

I knew it was broken, as I had a file exceeding 900MB

sudo chmod 0644 /etc/logrotate.d/z-way-server

Thankyou to ibjr
Raspi 3(Stretch), Zwave.me 3.0.0

User avatar
PoltoS
Posts: 4978
Joined: 26 Jan 2011 19:36

Re: logrotate z-way-server has wrong file mode

Post by PoltoS » 16 Sep 2019 23:18

Thanks for the tip. Will become part of 3.0.1

Post Reply