:: tighar:cron ::
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tighar:cron [2012/09/15 05:21]
moleski
tighar:cron [2017/07/13 20:33] (current)
Line 1: Line 1:
 +====== 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
 +
 +
 +
  
 
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki