[packages/sysstat] modify crontab to skip under systemd (systemd timers already installed)

glen glen at pld-linux.org
Wed Oct 28 12:19:09 CET 2015


commit 7746159b7b638a55f6a4d11a2e9af610afbfc5e0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Oct 28 13:17:43 2015 +0200

    modify crontab to skip under systemd (systemd timers already installed)

 crontab | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/crontab b/crontab
index 4785d14..405d26a 100644
--- a/crontab
+++ b/crontab
@@ -1,19 +1,16 @@
-# Crontab sample for root or adm
-# Please update this crontab with the proper location
-# for sa1 and sa2 shell scripts (replace /usr/lib64/sa with
-# /usr/lib/sa for example).
+# Crontab
 #
 # 8am-7pm activity reports every 20 minutes during weekdays.
-# 0 8-18 * * 1-5 /usr/lib64/sa/sa1 1200 3 &
+# 0 8-18 * * 1-5 /bin/systemd_booted || /usr/lib64/sa/sa1 1200 3
 # activity reports every 10 minutes everyday.
-0 * * * * /usr/lib64/sa/sa1 600 6 &
+0 * * * * /bin/systemd_booted || /usr/lib64/sa/sa1 600 6
 #
 # Activity reports every an hour on Saturday and Sunday.
-# 0 * * * 0,6 /usr/lib64/sa/sa1 &
+# 0 * * * 0,6 /bin/systemd_booted || /usr/lib64/sa/sa1
 #
 # 7pm-8am activity reports every an hour during weekdays.
-# 0 19-7 * * 1-5 /usr/lib64/sa/sa1 &
+# 0 19-7 * * 1-5 /bin/systemd_booted || /usr/lib64/sa/sa1
 #
 # Daily summary prepared at 19:05.
-# 5 19 * * 1-5 /usr/lib64/sa/sa2 -A &
-5 19 * * * /usr/lib64/sa/sa2 -A &
+# 5 19 * * 1-5 /bin/systemd_booted || /usr/lib64/sa/sa2 -A
+5 19 * * * /bin/systemd_booted || /usr/lib64/sa/sa2 -A
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sysstat.git/commitdiff/7b30f63e04aa7e0a1aab891c55296179e7e99b32



More information about the pld-cvs-commit mailing list