Bug#900586: rsyslog: systemd Service File Update Breaks logrotate
Diff is attached. Interesting; it looks like I should be using "/usr/lib/rsyslog/rsyslog-rotate" instead of "invoke-rc.d rsyslog rotate > /dev/null". I'll try that. On Sat, Jun 2, 2018 at 12:53 AM, Michael Biebl wrote: > > Am 01.06.2018 um 19:47 schrieb Dave Sp: > > -- Configuration Files: > > /etc/init.d/rsyslog changed [not included] > > /etc/logrotate.d/rsyslog changed [not included] > > Please send me your modified /etc/logrotate.d/rsyslog > > > -- > Why is it that all of the instruments seeking intelligent life in the > universe are pointed away from Earth? > > *** rsyslog.8.34.0-1.orig 2018-04-06 14:40:49.0 -0500 --- rsyslog 2018-04-04 06:11:56.823040263 -0500 *** *** 1,13 /var/log/syslog { ! rotate 7 ! daily missingok notifempty delaycompress compress postrotate ! /usr/lib/rsyslog/rsyslog-rotate endscript } --- 1,16 /var/log/syslog { ! # rotate 7 ! rotate 4 ! # daily ! weekly ! # size 1M missingok notifempty delaycompress compress postrotate ! invoke-rc.d rsyslog rotate > /dev/null endscript } *** *** 32,37 delaycompress sharedscripts postrotate ! /usr/lib/rsyslog/rsyslog-rotate endscript } --- 35,40 delaycompress sharedscripts postrotate ! invoke-rc.d rsyslog rotate > /dev/null endscript }
Bug#900586: rsyslog: systemd Service File Update Breaks logrotate
Package: rsyslog Version: 8.34.0-1 Severity: normal Dear Maintainer, Between rsyslog package versions 8.24.0-1 and 8.34.0-1, after "logrotate" runs, new "/var/log/syslog" and "/var/log/messages" files are created but ignored; their sizes are 0 bytes, and rsyslogd continues writing to "/var/log/syslog.1" and "/var/log/messages.1". Comparing rsyslog package versions 8.24.0-1 and 8.34.0-1, the ExecStart line in file "/lib/systemd/system/rsyslog.service" changed from "ExecStart=/usr/sbin/rsyslogd -n" to "ExecStart=/usr/sbin/rsyslogd -n -iNONE". Apparently, this change breaks log-rotate functionality. In "/etc/init.d/rsyslog", when the function "do_rotate()" is changed from do_rotate() { start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDFILE --exec $DAEMON } to do_rotate() { start-stop-daemon --stop --signal HUP --quiet --exec $DAEMON } (removing "--pidfile $PIDFILE"), the log files rotate as expected. In "/etc/init.d/rsyslog", the functions "do_start()" and "do_stop()" also use the "--pidfile" argument, options which, based on the change to "/lib/systemd/system/rsyslog.service", may no longer be needed. The package maintainer can best determine whether or not those functions also need to be changed. -- System Information: Debian Release: buster/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages rsyslog depends on: ii init-system-helpers 1.51 ii libc62.27-3 ii libestr0 0.1.10-2.1 ii libfastjson4 0.99.8-2 ii liblogging-stdlog0 1.0.6-3 ii liblognorm5 2.0.5-1 ii libsystemd0 238-4 ii libuuid1 2.32-0.1 ii lsb-base 9.20170808 ii zlib1g 1:1.2.11.dfsg-1 Versions of packages rsyslog recommends: ii logrotate 3.11.0-0.1 Versions of packages rsyslog suggests: pn rsyslog-doc pn rsyslog-gnutls pn rsyslog-gssapi pn rsyslog-mongodb pn rsyslog-mysql | rsyslog-pgsql pn rsyslog-relp -- Configuration Files: /etc/init.d/rsyslog changed [not included] /etc/logrotate.d/rsyslog changed [not included] -- debconf-show failed
Bug#631580: samhain: Samhain no longer runs as daemon; has to run in foreground
Package: samhain Version: 2.6.2-2 Severity: important After Testing upgrade of the kernel to linux-image-2.6-amd64 2.6.39+35.1, Samhain no longer runs as a daemon. Running /usr/sbin/samhain -D results in Samhain running for a few seconds then exiting with a zero return code. Running /usr/sbin/samhain --foreground --forever works, but obviously that won't make init scripts happy. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages samhain depends on: ii debconf [debconf-2.0] 1.5.39 Debian configuration management sy ii libc6 2.13-7 Embedded GNU C Library: Shared lib ii libgcrypt11 1.4.6-5 LGPL Crypto library - runtime libr ii libgnutls26 2.10.5-1+b1 the GNU TLS library - runtime libr ii libprelude2 1.0.0-3+b1 Security Information Management Sy ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime samhain recommends no packages. samhain suggests no packages. -- Configuration Files: /etc/init.d/samhain changed [not included] /etc/logrotate.d/samhain changed [not included] /etc/samhain/samhainrc changed [not included] -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org