Cron Jobs on Linux with Cronie and Stratos Datacenter

⏰ Day 6 of #100DaysOfDevOps — Cron jobs Today's task: install cronie and deploy a scheduled cron job across all 3 app servers in the Stratos Datacenter. But first — what is cron? Cron is Linux's built-in task scheduler. A background daemon (crond) wakes up every minute, checks if any scheduled jobs are due, and runs them. It's the engine behind almost every automated task in a Linux environment — backups, log rotation, health checks, deployments. A cron expression has 5 time fields: ┌───── minute (0-59) │ ┌───── hour (0-23) │ │ ┌───── day of month (1-31) │ │ │ ┌───── month (1-12) │ │ │ │ ┌───── day of week (0-7) */5 * * * * echo hello > /tmp/cron_text → Runs every 5 minutes, every hour, every day. What I did on each server: 1. sudo yum install -y cronie 2. sudo systemctl enable --now crond 3. sudo crontab -u root -e (added the job) 4. sudo crontab -u root -l (verified it saved) Key distinction I learned: systemctl start → starts the service NOW only systemctl enable → makes it survive reboots systemctl enable --now → does both in one command "Cron is the heartbeat of server automation. If something happens on a schedule — cron is doing it." #DevOps #Linux #Cron #Automation #SysAdmin #KodeKloud

  • graphical user interface

To view or add a comment, sign in

Explore content categories