Question:
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:
- Install cronie package on all Nautilus app servers and start crond service.
- Add a cron */5 * * * * echo hello > /tmp/cron_text for root user.
Solution:
# SSH to App server 1
ssh tony@stapp01
# Install cron daemon
sudo dnf install cronie
# Start cron service
sudo systemctl restart crond
# Check status
systemctl status crond
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; preset: enabled)
Active: active (running) since Sat 2026-10-31 09:52:47 UTC; 24s ago
Main PID: 33635 (crond)
Tasks: 1 (limit: 404712)
Memory: 956.0K
CPU: 3ms
CGroup: /system.slice/crond.service
└─33635 /usr/sbin/crond -n
# Schedule cronjob
sudo crontab -e
*/5 * * * * echo hello > /tmp/cron_text
Now we do the same for App server 2 and 3. If you have ansible we can easily automate this rather than manually SSHing into servers and executing commands.
