Gonzalo Cao Cabeza de Vaca
unread,Nov 30, 2023, 6:30:05 AM11/30/23You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Package: sympa
Version: 6.2.70~dfsg-2
Severity: normal
Tags: patch
Dear Maintainer,
current /etc/logrotate.d/sympa configuration is failing as we are now using systemd
/var/log/sympa.log {
missingok
notifempty
rotate 14
minsize 1M
maxsize 10M
compress
delaycompress
create 640 sympa sympa
postrotate
if [ -e /proc/1/exe ] && readlink -f /proc/1/exe | grep -q 'systemd' ; then
systemctl try-reload-or-restart sympa
else
invoke-rc.d --quiet sympa reload > /dev/null
fi
invoke-rc.d --quiet rsyslog rotate > /dev/null || true <- THIS IS THE PROBLEM
endscript
}
/usr/sbin/invoke-rc.d: 538: /etc/init.d/rsyslog: not found
I suggest to use new rsyslog-rotate command as rsyslog it self uses in their logrotate config
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
so new config should be something like
/var/log/sympa.log {
missingok
notifempty
rotate 14
minsize 1M
maxsize 10M
compress
delaycompress
create 640 sympa sympa
postrotate
if [ -e /proc/1/exe ] && readlink -f /proc/1/exe | grep -q 'systemd' ; then
systemctl try-reload-or-restart sympa
else
invoke-rc.d --quiet sympa reload > /dev/null
fi
/usr/lib/rsyslog/rsyslog-rotate
endscript
}
regards
-- System Information:
Debian Release: 12.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages sympa depends on:
ii adduser 3.134
ii ca-certificates 20230311
ii dbconfig-pgsql 2.0.24
ii debconf [debconf-2.0] 1.5.82
ii exim4-daemon-light [mail-transport-agent] 4.96-15+deb12u2
ii fonts-font-awesome 5.0.10+really4.7.0~dfsg-4.1
ii init-system-helpers 1.65.2
ii libarchive-zip-perl 1.68-1
ii libc6 2.36-9+deb12u3
ii libcgi-fast-perl 1:2.15-1
ii libcgi-pm-perl 4.55-1
ii libclass-singleton-perl 1.6-2
ii libcrypt-eksblowfish-perl 0.009-3+b1
ii libcrypt-openssl-x509-perl 1.9.14-2+b1
ii libcrypt-smime-perl 0.28-1+b3
ii libdatetime-format-mail-perl 0.4030-3
ii libdbd-csv-perl 0.6000-1
ii libdbd-mysql-perl 4.050-5+b1
ii libdbd-pg-perl 3.16.0-2
ii libdbd-sqlite3-perl 1.72-1
ii libdbi-perl 1.643-4
ii libfcgi-perl 0.82+ds-2
ii libfile-copy-recursive-perl 0.45-4
ii libfile-nfslock-perl 1.29-2
ii libhtml-format-perl 2.16-2
ii libhtml-stripscripts-parser-perl 1.03-2.1
ii libhtml-tree-perl 5.07-3
ii libintl-perl 1.33-1
ii libio-stringy-perl 2.111-3
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-jquery-migrate-1 1.4.1-2
ii libjs-jquery-minicolors 2.3.5+dfsg-4
ii libjs-jquery-ui 1.13.2+dfsg-1
ii libmail-dkim-perl 1.20230212-1
ii libmailtools-perl 2.21-2
ii libmime-charset-perl 1.013.1-2
ii libmime-encwords-perl 1.014.3-4
ii libmime-lite-html-perl 1.24-3.1
ii libmime-tools-perl 5.510-1
ii libnet-cidr-perl 0.21-2
ii libnet-dns-perl 1.36-1
ii libnet-ldap-perl 1:0.6800+dfsg-1
ii libnet-netmask-perl 2.0002-2
ii libregexp-common-perl 2017060201-3
ii libsoap-lite-perl 1.27-3
ii libtemplate-perl 2.27-1+b5
ii libterm-progressbar-perl 2.23-1
ii libunicode-linebreak-perl 0.0.20190101-1+b5
ii libxml-libxml-perl 2.0207+dfsg+really+2.0134-1+b1
ii mhonarc 2.6.19-2.2
ii multiwatch 1.0.0-rc1+really1.0.0-1+b1
ii node-html5shiv 3.7.3+dfsg-5
ii perl 5.36.0-7
ii rsyslog [system-log-daemon] 8.2302.0-1
ii sqlite3 3.40.1-2
Versions of packages sympa recommends:
ii apache2-suexec-custom [apache2-suexec] 2.4.57-2
ii default-mysql-server 1.1.0
ii doc-base 0.11.1
ii libapache2-mod-fcgid 1:2.3.9-4
ii libcrypt-ciphersaber-perl 1.01-2.1
ii libio-socket-ssl-perl 2.081-2
ii locales 2.36-9+deb12u3
ii logrotate 3.21.0-1
Versions of packages sympa suggests:
ii apache2 [httpd-cgi] 2.4.57-2
pn libauthcas-perl <none>
pn libdbd-odbc-perl <none>
pn libdbd-oracle-perl <none>
-- Configuration Files:
/etc/apache2/conf-available/sympa.conf changed [not included]
/etc/logrotate.d/sympa changed [not included]
/etc/rsyslog.d/sympa.conf changed [not included]
/etc/sympa/auth.conf changed [not included]
/etc/sympa/topics.conf changed [not included]
-- debconf information excluded