Browse Source

Switched from piping to --output /dev/null for curl

pull/380/head
Simon Beginn 4 years ago
parent
commit
4592987810
4 changed files with 6 additions and 6 deletions
  1. +2
    -2
      templates/docs/monitoring_cron_jobs.html
  2. +2
    -2
      templates/docs/monitoring_cron_jobs.md
  3. +1
    -1
      templates/front/snippets/crontab.html
  4. +1
    -1
      templates/front/snippets/crontab.txt

+ 2
- 2
templates/docs/monitoring_cron_jobs.html View File

@ -42,7 +42,7 @@ increasingly important as you add more checks to your account.</p>
after the command:</p>
<div class="highlight"><pre><span></span><code>$ crontab -e
<span class="c1"># m h dom mon dow command</span>
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> PING_URL &gt; /dev/null
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> --output /dev/null PING_URL
</code></pre></div>
@ -109,4 +109,4 @@ there is an error. Feel free to adjust the curl options to suit your needs.</p>
</span>System clock synchronized: yes
NTP service: active
RTC in local TZ: no
</code></pre></div>
</code></pre></div>

+ 2
- 2
templates/docs/monitoring_cron_jobs.md View File

@ -41,7 +41,7 @@ after the command:
```bash
$ crontab -e
# m h dom mon dow command
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 PING_URL > /dev/null
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 --output /dev/null PING_URL
```
Now, each time your cron job runs, it will send a HTTP request to the ping URL.
@ -113,4 +113,4 @@ $ timedatectl status
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
```
```

+ 1
- 1
templates/front/snippets/crontab.html View File

@ -1,3 +1,3 @@
<div class="highlight"><pre><span></span><span class="c1"># m h dom mon dow command</span>
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> {{ ping_url }} &gt; /dev/null
<span class="m">8</span> <span class="m">6</span> * * * /home/user/backup.sh <span class="o">&amp;&amp;</span> curl -fsS --retry <span class="m">3</span> --output /dev/null {{ ping_url }}
</pre></div>

+ 1
- 1
templates/front/snippets/crontab.txt View File

@ -1,2 +1,2 @@
# m h dom mon dow command
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 PING_URL > /dev/null
8 6 * * * /home/user/backup.sh && curl -fsS --retry 3 --output /dev/null PING_URL

Loading…
Cancel
Save