16 lines
549 B
Plaintext
16 lines
549 B
Plaintext
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
# Limitator
|
|
# Save used bytes to local file
|
|
*/10 7-23 * * * /etc/init.d/limitator save &
|
|
# Restart at midnight
|
|
1 0 1-12,14-31 * * /etc/init.d/limitator restart &
|
|
# Reset the quota monthly (MUST BE START DAY!)
|
|
1 0 1 * * /etc/init.d/limitator reset &
|
|
|
|
# Reboot at 4:30am every day
|
|
# Note: To avoid infinite reboot loop, wait 70 seconds
|
|
# and touch a file in /etc so clock will be set
|
|
# properly to 4:31 on reboot before cron starts.
|
|
30 4 * * * sleep 70 && touch /etc/banner && reboot
|