Posts tagged 'cron'

Dan

"run-parts: /etc/cron.daily/logrotate exited with return code 1"

Recently I got nullmailer working on my home server - and along with it working CRON logs filling my inbox. Tracking these issues down will often leave you in unexpected territory. I'll write up each journey one at a time.

First up is a very brief email from logrotate that greets …

Dan

Signal to noise - wrapping custom scripts for errors

Took a shortcut on this one. rejigger.sh is a hacky script that has grown over the years to keep some legacy interdependent services running. It outputs all sorts of useful information that is useful when something goes wrong [and more hack needs to be input into the script]. But …

Dan

Use flock to prevent cron from rerunning shell scripts

An example of using the flock(1) command to wrap shell scripts in an advisory lock.