Dr. Werner Fink 2012-10-17 13:34:57 +00:00 committed by Git OBS Bridge
parent 55bc86606b
commit 28194cfb3a
5 changed files with 34 additions and 53 deletions

View File

@ -9,7 +9,12 @@
# the firewall,acpid,NetworkManager log files
# are used by syslog-ng and rsyslog only, the
# other by all syslog daemons.
/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall /var/log/acpid /var/log/NetworkManager {
# the mail log files are used by all syslog daemons
# the news log files are used by all syslog daemons
/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall /var/log/acpid /var/log/NetworkManager
/var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err
/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice
{
compress
dateext
maxage 365
@ -23,37 +28,3 @@
/etc/init.d/syslog reload > /dev/null
endscript
}
# used by all syslog daemons
/var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +4096k
create 640 root root
sharedscripts
postrotate
/etc/init.d/syslog reload > /dev/null
endscript
}
# used by all syslog daemons
/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice {
compress
dateext
maxage 365
rotate 99
missingok
notifempty
size +4096k
su news news
create 640 news news
sharedscripts
postrotate
/etc/init.d/syslog reload > /dev/null
endscript
}

View File

@ -205,6 +205,7 @@ tmpcore=$(/bin/mktemp $RUN_PATH/syslog.XXXXXXXX) || exit 1
StandardOutput=null
ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
ExecStartPre=-$socksdir/addsockets
ExecReload=/bin/kill -HUP \$MAINPID
EOF
#

9
syslogd-rpmlintrc Normal file
View File

@ -0,0 +1,9 @@
addFilter(".*incoherent-logrotate-file.*")
addFilter(".*init-script-non-var-dependency.*")
addFilter(".*dangling-symlink.*/lib/systemd/system/earlysyslog\.service.*/dev/null.*")
addFilter(".*no-reload-entry.*/etc/init\.d/early.*")
addFilter(".*no-status-entry.*/etc/init\.d/early.*")
addFilter(".*no-url-tag.*")
addFilter(".*non-etc-or-var-file-marked-as-conffile.*/lib/systemd/system/.*")
addFilter(".*suse-logrotate-log-dir-not-packaged.*/var/log/news.*")
addFilter(".*suse-missing-rclink.*early.*")

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 17 13:33:09 UTC 2012 - werner@suse.de
- Avoid logrotate to exec for similar entries several times (bnc#713584)
-------------------------------------------------------------------
Wed Mar 7 14:22:13 UTC 2012 - werner@suse.de

View File

@ -15,29 +15,27 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: syslogd
%define omc_prefix /usr/share/omc
%define omc_svcdir %{omc_prefix}/svcinfo.d
License: GPL-2.0+
Group: System/Daemons
BuildRequires: pkg-config systemd-devel
Requires(post): %fillup_prereq
BuildRequires: pkg-config
BuildRequires: systemd-devel
Requires(post): %fillup_prereq
Requires(post): %insserv_prereq
Requires(post): permissions
Requires(post): permissions
Requires(postun): %insserv_prereq
Requires(prereq): coreutils
Requires(prereq): klogd
Requires(prereq): sed
Requires(prereq): syslog-service
Provides: syslog
Provides: sysklogd
AutoReqProv: on
Provides: syslog
Version: 1.4.1
Release: 747
Release: 0
Summary: The Syslog daemon
License: GPL-2.0+
Group: System/Daemons
Source: sysklogd-1.4.1.tar.bz2
Source1: logrotate.syslog
Source2: sysconfig.syslog
@ -99,14 +97,12 @@ Authors:
Shane Alderton <shane@scs.apana.org.au>
%package -n klogd
License: GPL-2.0+
Provides: klogd:/sbin/klogd
Requires(post): %fillup_prereq
Requires(post): %fillup_prereq
Requires(post): %insserv_prereq
Requires(postun): %insserv_prereq
Summary: The kernel log daemon
Group: System/Daemons
AutoReqProv: on
%description -n klogd
The klogd daemon 'listens' to kernel log messages, prioritizes them,
@ -125,15 +121,14 @@ Authors:
Shane Alderton <shane@scs.apana.org.au>
%package -n syslog-service
License: GPL-2.0+
Requires(post): %fillup_prereq
Requires(post): %insserv_prereq
Requires(post): %fillup_prereq
Requires(post): %insserv_prereq
Requires(postun): %insserv_prereq
Provides: klogd:/etc/init.d/syslog
Requires: /etc/init.d/network logrotate
Requires: /etc/init.d/network
Requires: logrotate
Summary: Syslog service files & scripts
Group: System/Daemons
AutoReqProv: on
BuildArch: noarch
%description -n syslog-service