[packages/sysstat] fix cron definiton, broken since sysstat-11.0.8-2
glen
glen at pld-linux.org
Sun Jan 15 16:34:31 CET 2017
commit 77e8d6c545f70053b70eefe71e144e18a9887213
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jan 15 17:31:14 2017 +0200
fix cron definiton, broken since sysstat-11.0.8-2
crond[15988]: (/bin/systemd_booted) ERROR (getpwnam() failed)
refs:
* 7b30f63 - (tag: auto/th/sysstat-11.0.8-2) install our crontab which checks for systemd (1 year, 3 months ago)
crontab | 19 ++++++++++---------
sysstat.spec | 2 +-
2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/sysstat.spec b/sysstat.spec
index 5262253..f2dc26e 100644
--- a/sysstat.spec
+++ b/sysstat.spec
@@ -12,7 +12,7 @@ Summary(zh_CN.UTF-8): sar, iostat 等系统监视工具
# Sysstat 11.2.x (stable version).
Name: sysstat
Version: 11.2.0
-Release: 3
+Release: 4
License: GPL v2
Group: Applications/System
Source0: http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz
diff --git a/crontab b/crontab
index f84eb4d..9606b85 100644
--- a/crontab
+++ b/crontab
@@ -1,16 +1,17 @@
# Crontab
#
# 8am-7pm activity reports every 20 minutes during weekdays.
-# 0 8-18 * * 1-5 /bin/systemd_booted || /usr/lib/sa/sa1 1200 3
+#0 8-18 * * 1-5 root /bin/systemd_booted || /usr/lib/sa/sa1 1200 3
+
# activity reports every 10 minutes everyday.
-0 * * * * /bin/systemd_booted || /usr/lib/sa/sa1 600 6
-#
+0 * * * * root /bin/systemd_booted || /usr/lib/sa/sa1 600 6
+
# Activity reports every an hour on Saturday and Sunday.
-# 0 * * * 0,6 /bin/systemd_booted || /usr/lib/sa/sa1
-#
+#0 * * * 0,6 root /bin/systemd_booted || /usr/lib/sa/sa1
+
# 7pm-8am activity reports every an hour during weekdays.
-# 0 19-7 * * 1-5 /bin/systemd_booted || /usr/lib/sa/sa1
-#
+#0 19-7 * * root 1-5 /bin/systemd_booted || /usr/lib/sa/sa1
+
# Daily summary prepared at 19:05.
-# 5 19 * * 1-5 /bin/systemd_booted || /usr/lib/sa/sa2 -A
-5 19 * * * /bin/systemd_booted || /usr/lib/sa/sa2 -A
+#5 19 * * root 1-5 /bin/systemd_booted || /usr/lib/sa/sa2 -A
+5 19 * * * root /bin/systemd_booted || /usr/lib/sa/sa2 -A
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sysstat.git/commitdiff/77e8d6c545f70053b70eefe71e144e18a9887213
More information about the pld-cvs-commit
mailing list