← Back to Index | ← Previous: Day 2

Objective

The Nautilus system admins team has prepared scripts to automate several day-to-day tasks. They want them to be deployed on all app servers in Stratos DC on a set schedule. Before that they need to test similar functionality with a sample cron job. Therefore, perform the steps below:

  1. Install cronie package on all Nautilus app servers and start crond service.
  2. Add a cron */5 * * * * echo hello > /tmp/cron_text for root user.
Steps
  1. Login into each server using ssh
  2. Install cronie package:
    sudo yum install cronie -y
  3. Enable and start crond service:
    sudo systemctl enable crond
    sudo systemctl start crond
    Verify the service is running:
    sudo systemctl status crond
  4. Add the cron job for root user:
    echo "*/5 * * * * echo hello > /tmp/cron_text" | sudo crontab -
  5. Verify the cron job is added:
    sudo crontab -l

Next: Day 7 →