]> git.pld-linux.org Git - packages/sysstat.git/commitdiff
modify crontab to skip under systemd (systemd timers already installed)
authorElan Ruusamäe <glen@delfi.ee>
Wed, 28 Oct 2015 11:17:43 +0000 (13:17 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 28 Oct 2015 11:17:43 +0000 (13:17 +0200)
crontab

diff --git a/crontab b/crontab
index 4785d144bb602d73cf9a9f5c0098bd9282e336a8..405d26ac2ae26d6ce695699421b3bb2f8c87727f 100644 (file)
--- 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
This page took 0.062766 seconds and 4 git commands to generate.