Add Cron Jobs – Linux / Suse

  1. Login to your server with SSH
  2. Type crontab -l to display list of cron jobs,
  3. Type crontab -e to edit your crontab,
  4. Add 0 4 * * * /etc/init.d/mysqld restart to restart Mysql everyday at 4 AM,
  5. Add 0 5 * * * /etc/init.d/httpd restart to restart Apache everyday at 5 AM and
  6. Add 0 24 * * * /etc/init.d/httpd restart to restart Apache everyday at 12 AM
  7. Save your file,
  8. Recheck with crontab -l

1 thought on “Add Cron Jobs – Linux / Suse

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.