#!/bin/bash # warning : crond is buggy, it doesn't close its fd's before forking, # hence the call to daemon() in cmdline ! . `dirname $0`/functions option bin reserved_option /usr/sbin/crond option cmdline reserved_option 'daemon $bin' option pidfile reserved_option /var/run/crond.pid option crontab standard_option /etc/crontab option crontabdir standard_option /var/spool/cron function fct_pre_start { if [ ! -d "$opt_crontabdir" ] ; then if ! ( mkdir -p -m 750 "$opt_crontabdir" && chown root:adm "$opt_crontabdir" ); then echo " ==> Failed to create directory '$opt_crontabdir' (-> crontabdir)." return 1 fi fi } load_config