]> granicus.if.org Git - sysstat/commitdiff
remove superfluous '&' within crontabs
authorSteve Kay <stevekay@gmail.com>
Sat, 27 Oct 2018 20:06:01 +0000 (21:06 +0100)
committerSteve Kay <stevekay@gmail.com>
Sat, 27 Oct 2018 20:06:01 +0000 (21:06 +0100)
FAQ.md
cron/crontab.sample
cron/sysstat.cron.daily.in
cron/sysstat.cron.hourly.in
cron/sysstat.crond.in
man/sa2.in

diff --git a/FAQ.md b/FAQ.md
index 5dc05c99a60a2096955ca337e24d4264867fbb99..762caf3bfbf27bfd8c6e792597aace5af4d69560 100644 (file)
--- a/FAQ.md
+++ b/FAQ.md
@@ -317,7 +317,7 @@ file. Stop all sadc instances and try again.
 ---
 2.12. I have sysstat setup to run via cron:
 ```
-0 * * * * /usr/local/lib/sa/sa1 600 6 &
+0 * * * * /usr/local/lib/sa/sa1 600 6
 ```
 so that I get an activity report every 10 minutes.  
 When I use sar to get my output, there is no reading for `00:00:00`. This
@@ -335,13 +335,13 @@ rotation. So a crontab like the following one should enable you to get the
 data for midnight at the end of each daily data file:
 ```
 # Activity reports every 10 minutes from 01:00:00 to 22:50:00
-0 1-22 * * * /usr/local/lib/sa/sa1 600 6 &
+0 1-22 * * * /usr/local/lib/sa/sa1 600 6
 # Activity reports every 10 minutes from 23:00:00 to 00:00:00
 # Reporting until 00:00:00 ensures that a file rotation will be detected
 # by sadc
-0 23 * * * /usr/local/lib/sa/sa1 600 7 &
+0 23 * * * /usr/local/lib/sa/sa1 600 7
 # Activity reports every 10 minutes from 00:10:00 to 00:50:00
-10 0 * * * /usr/local/lib/sa/sa1 600 5 &
+10 0 * * * /usr/local/lib/sa/sa1 600 5
 ```
 Another possible crontab would be:
 ```
index 7cc3b444a41a2cfacf4636f178095ca9a0dba1a1..b5e396d244cb2494a022f35960d74169d3b52e54 100644 (file)
@@ -4,16 +4,16 @@
 # /usr/lib/sa for example).
 #
 # 8am-7pm activity reports every 20 minutes during weekdays.
-# 0 8-18 * * 1-5 @SA_LIB_DIR@/sa1 1200 3 &
+# 0 8-18 * * 1-5 @SA_LIB_DIR@/sa1 1200 3
 # activity reports every @CRON_INTERVAL@ minutes everyday.
-0 * * * * @SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@ &
+0 * * * * @SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@
 #
 # Activity reports every an hour on Saturday and Sunday.
-# 0 * * * 0,6 @SA_LIB_DIR@/sa1 &
+# 0 * * * 0,6 @SA_LIB_DIR@/sa1
 #
 # 7pm-8am activity reports every an hour during weekdays.
-# 0 19-7 * * 1-5 @SA_LIB_DIR@/sa1 &
+# 0 19-7 * * 1-5 @SA_LIB_DIR@/sa1
 #
 # Previous day summary prepared at 00:07.
-# 7 0 * * 1-5 @SA_LIB_DIR@/sa2 -A &
-7 0 * * * @SA_LIB_DIR@/sa2 -A &
+# 7 0 * * 1-5 @SA_LIB_DIR@/sa2 -A
+7 0 * * * @SA_LIB_DIR@/sa2 -A
index 943e9fe3c394d7be40feb379cf05f09cec9bb6d3..a37a29054c9b7bdb591e0a1f1d1c73be0247e08e 100644 (file)
@@ -2,4 +2,4 @@
 # Generate a daily summary of process accounting.  Since this will probably
 # get kicked off in the morning, it would probably be better to run against
 # the previous days data.
-@SA_LIB_DIR@/sa2 -A &
+@SA_LIB_DIR@/sa2 -A
index 61c9cf23b478060476bfbbcadc19ae93b32b7ed3..de6540b422af3ac19fe952a51448140f0f23eff7 100644 (file)
@@ -1,3 +1,3 @@
 #!/bin/sh
 # Run system activity accounting tool every @CRON_INTERVAL@ minutes
-@SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@ &
+@SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@
index 79673706d8fa8bb43b688a3d2ccd67625aada054..48bb50c64eab8129cbb7ce93d796737f0e0ddc79 100644 (file)
@@ -1,6 +1,6 @@
 # Run system activity accounting tool every @CRON_INTERVAL@ minutes
 */@CRON_INTERVAL@ * * * * @CRON_OWNER@ @SA_LIB_DIR@/sa1 1 1
-# 0 * * * * @CRON_OWNER@ @SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@ &
+# 0 * * * * @CRON_OWNER@ @SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@
 # Generate a text summary of previous day process accounting at 00:07
 7 0 * * * @CRON_OWNER@ @SA_LIB_DIR@/sa2 -A
 
index 0674b2571166116145d88bf0453f30a9b87906a3..4f0212bc73b859fa6dce03c56b548e423fe145ab 100644 (file)
@@ -42,7 +42,7 @@ To run the
 .B sa2
 command daily, place the following entry in your root crontab file:
 
-.B 5 19 * * 1-5 @SA_LIB_DIR@/sa2 -A &
+.B 5 19 * * 1-5 @SA_LIB_DIR@/sa2 -A
 
 This will generate by default a daily report called
 .I sarDD