Linux System Admins Blog

System admins of Promet – an e-commerce, high availability Open Source web shop – share their findings

Linux System Admins Blog header image 2

run-parts not running all the scripts in /etc/cron.daily

September 18th, 2008 · No Comments

Okay, I realize that this is a simple one but it caught me by surprise nonetheless. Most of our scheduled scripts are placed in the /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly directories. After migrating some of these scripts to another server it turned out they were not being executed. After some research it came up that run-parts (or at least some implementations of it) was just skipping the files that had . in it. Our CentOS server was executing them perfectly but the Debian server just skipped them. The man page mentions it by omission:

If  the  –lsbsysinit  option is not given then the names must consist entirely of upper and lower case letters, digits, under-scores, and hyphens.

To check what scripts will be executed call run-parts with the –test option.

Random Posts

Tags: sysadmin

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment