OBS User unknown 2008-10-06 16:28:19 +00:00 committed by Git OBS Bridge
parent f5d52c0cd9
commit 499708bd34
3 changed files with 9 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#!/bin/sh #!/bin/sh
+# exit immediately if there is another instance running +# exit immediately if there is another instance running
+if pgrep logrotate; then +if checkproc /usr/sbin/logrotate; then
+ /bin/logger -t logrotate "ALERT another instance of logrotate is running - exiting" + /bin/logger -t logrotate "ALERT another instance of logrotate is running - exiting"
+ exit 1; + exit 1;
+fi; +fi;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 30 13:17:04 CEST 2008 - puzel@suse.cz
- use chekcproc in logrotate.cron script instead of pgrep (bnc#426162)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 3 11:20:54 CEST 2008 - puzel@suse.cz Wed Sep 3 11:20:54 CEST 2008 - puzel@suse.cz

View File

@ -24,7 +24,7 @@ BuildRequires: popt-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
Summary: Rotate, Compress, Remove, and Mail System Log Files Summary: Rotate, Compress, Remove, and Mail System Log Files
Version: 3.7.7 Version: 3.7.7
Release: 1 Release: 8
License: GPL v2 or later License: GPL v2 or later
Group: System/Base Group: System/Base
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
@ -97,6 +97,8 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace)/etc/logrotate.d/wtmp %config(noreplace)/etc/logrotate.d/wtmp
%changelog %changelog
* Tue Sep 30 2008 puzel@suse.cz
- use chekcproc in logrotate.cron script instead of pgrep (bnc#426162)
* Wed Sep 03 2008 puzel@suse.cz * Wed Sep 03 2008 puzel@suse.cz
- update to 3.7.7 - update to 3.7.7
- dateformat - dateformat