Skip to content
Snippets Groups Projects
Commit b5d13252 authored by Tibo's avatar Tibo
Browse files

add sleep to crontab entry to avoid hitting mysql too hard

parent 2c54bd92
No related branches found
No related tags found
No related merge requests found
Pipeline #13642 passed
......@@ -16,7 +16,7 @@ unzip monitor-*.zip
</code></pre>
<p>Add a cron entry to run it automatically:</p>
<pre><code>echo "*/5 * * * * root /usr/bin/monitor sleep {{ $server->id % 240 }} && ping -i {{ $server->id }} -t {{ $server->token }} -s {{ config("app.url") }}" | \
<pre><code>echo "*/5 * * * * root sleep {{ $server->id % 240 }} && /usr/bin/monitor ping -i {{ $server->id }} -t {{ $server->token }} -s {{ config("app.url") }}" | \
sudo tee -a /etc/crontab
</code></pre>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment