File logrotate-3.7.7-cron-check-for-another-instance.patch of Package logrotate

# Fix (bnc#416221)
--- examples/logrotate.cron
+++ examples/logrotate.cron
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+# exit immediately if there is another instance running
+if checkproc /usr/sbin/logrotate; then
+	/bin/logger -t logrotate "ALERT another instance of logrotate is running - exiting"
+	exit 1;
+fi;
+
 TMPF=`mktemp /tmp/logrotate.XXXXXXXXXX`
 
 /usr/sbin/logrotate /etc/logrotate.conf 2>&1 | tee $TMPF
openSUSE Build Service is sponsored by