Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
logrotate
logrotate-3.7.7-suse.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File logrotate-3.7.7-suse.patch of Package logrotate
--- ./Makefile.orig 2008-05-19 12:25:54.000000000 +0200 +++ ./Makefile 2008-08-22 15:28:29.000000000 +0200 @@ -61,7 +61,7 @@ endif BINDIR = $(BASEDIR)/sbin -MANDIR = $(BASEDIR)/man +MANDIR = $(BASEDIR)/share/man #-------------------------------------------------------------------------- --- ./examples/logrotate.cron.orig 2008-08-22 15:51:39.000000000 +0200 +++ ./examples/logrotate.cron 2008-08-22 15:28:29.000000000 +0200 @@ -1,8 +1,17 @@ #!/bin/sh -/usr/sbin/logrotate /etc/logrotate.conf -EXITVALUE=$? +TMPF=`mktemp /tmp/logrotate.XXXXXXXXXX` + +/usr/sbin/logrotate /etc/logrotate.conf 2>&1 | tee $TMPF +EXITVALUE=${PIPESTATUS[0]} + if [ $EXITVALUE != 0 ]; then - /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" + # wait a sec, we might just have restarted syslog + sleep 1 + # tell what went wrong + /bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" + /bin/logger -t logrotate -f $TMPF fi + +rm -f $TMPF exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor