packages: mcelog/mcelog.spec, mcelog/mcelog.cron (NEW) - move cronjob to a ...
glen
glen at pld-linux.org
Tue Aug 10 12:21:41 CEST 2010
Author: glen Date: Tue Aug 10 10:21:40 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- move cronjob to a file
---- Files affected:
packages/mcelog:
mcelog.spec (1.16 -> 1.17) , mcelog.cron (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/mcelog/mcelog.spec
diff -u packages/mcelog/mcelog.spec:1.16 packages/mcelog/mcelog.spec:1.17
--- packages/mcelog/mcelog.spec:1.16 Tue Aug 10 12:01:38 2010
+++ packages/mcelog/mcelog.spec Tue Aug 10 12:21:35 2010
@@ -10,6 +10,7 @@
Source0: http://www.kernel.org/pub/linux/utils/cpu/mce/%{name}-%{version}%{subver}.tar.gz
# Source0-md5: b42f2214de6f4feb992556149edc67fa
Source1: %{name}.logrotate
+Source2: %{name}.cron
Patch1: %{name}-FHS.patch
Patch2: manual.patch
Requires: crondaemon
@@ -62,14 +63,11 @@
install -d $RPM_BUILD_ROOT{/etc/{cron,logrotate}.d,/var/log,%{statdir}}
%{__make} install \
- prefix=$RPM_BUILD_ROOT/%{_prefix} \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
etcprefix=$RPM_BUILD_ROOT
-cat <<'EOF' > $RPM_BUILD_ROOT/etc/cron.d/%{name}
-*/5 * * * * root %{_sbindir}/mcelog --ignorenodev --filter >> /var/log/mcelog 2>&1
-EOF
-
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
:> $RPM_BUILD_ROOT%{statdir}/memory-errors
@@ -92,6 +90,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.17 2010/08/10 10:21:35 glen
+- move cronjob to a file
+
Revision 1.16 2010/08/10 10:01:38 glen
- setup cron by recommended 5 minute interval
================================================================
Index: packages/mcelog/mcelog.cron
diff -u /dev/null packages/mcelog/mcelog.cron:1.1
--- /dev/null Tue Aug 10 12:21:40 2010
+++ packages/mcelog/mcelog.cron Tue Aug 10 12:21:35 2010
@@ -0,0 +1 @@
+*/5 * * * * root /usr/sbin/mcelog --ignorenodev --filter >> /var/log/mcelog 2>&1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mcelog/mcelog.spec?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list