restart Apache at midnight daily

log in as root

crontab -e       # uses vi

At the end of the file just add in your cron job, using the following format:

min hr day month weekday COMMAND

To restart everyday at midnight:

0 0 * * * /sbin/service/ httpd graceful

Back up the wiki at 4:00 AM on Sunday morning

0 4 * * Sun /var/www/html/aw/backup.sh
 
tighar/cron.txt · Last modified: 2023/08/12 19:17 by 127.0.0.1
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki