mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-11-22 11:19:22 +01:00
crontab: add random of 15 minutes
This commit is contained in:
parent
f087f985b0
commit
043a300590
@ -1,12 +1,16 @@
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin5
|
||||
|
||||
# TeleIRC sometimes stops working by itself, so I am restarting it twice a
|
||||
# day automatically as it seems to be enough for it to fix issues.
|
||||
0 8 * * * systemctl restart telepirateirc --quiet
|
||||
0 20 * * * systemctl restart telepirateirc --quiet
|
||||
0 8 * * * perl -le 'sleep rand 900' && systemctl restart telepirateirc --quiet
|
||||
0 8 * * * perl -le 'sleep rand 900' && systemctl restart telefreenode --quiet
|
||||
0 20 * * * perl -le 'sleep rand 900' && systemctl restart telepirateirc --quiet
|
||||
0 20 * * * perl -le 'sleep rand 900' && systemctl restart telefreenode --quiet
|
||||
|
||||
# Discord-IRC is a lot more unreliable than TeleIRC, but it seems to work
|
||||
# enough well (=no one notices if it's broken) in case it's restarted four
|
||||
# times a day.
|
||||
0 1 * * * systemctl restart discordpirateirc --quiet
|
||||
0 8 * * * systemctl restart discordpirateirc --quiet
|
||||
0 13 * * * systemctl restart discordpirateirc --quiet
|
||||
0 20 * * * systemctl restart discordpirateirc --quiet
|
||||
0 1 * * * perl -le 'sleep rand 900' && systemctl restart discordpirateirc --quiet
|
||||
0 8 * * * perl -le 'sleep rand 900' && systemctl restart discordpirateirc --quiet
|
||||
0 13 * * * perl -le 'sleep rand 900' && systemctl restart discordpirateirc --quiet
|
||||
0 20 * * * perl -le 'sleep rand 900' && systemctl restart discordpirateirc --quiet
|
||||
|
Loading…
Reference in New Issue
Block a user