Add 'at' daemon

This commit is contained in:
Myve 2024-08-14 17:26:17 +00:00
commit ba1802d08c
2 changed files with 12 additions and 12 deletions

View file

@ -1,24 +1,24 @@
#!/usr/bin/env bash
# Start at daemon
atd
# Roundcube cleanup (daily)
while true
do
at midnight -f /usr/share/webapps/roundcube/bin/cleandb.sh
done &
# Update Postscreen Whitelists (daily)
while true
do
sleep 1d
/usr/local/bin/postwhite/postwhite
at midnight -f /usr/local/bin/postwhite/postwhite
done &
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
while true
do
sleep 7d
/usr/local/bin/postwhite/scrape_yahoo
done &
# Roundcube cleanup (daily)
while true
do
sleep 1d
/usr/share/webapps/roundcube/bin/cleandb.sh
at midnight sunday -f /usr/local/bin/postwhite/scrape_yahoo
done &
# # Refresh ssl keys daily