summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/crond
blob: 98724c6095cb1455d618933eeab4d8810f8af71a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# warning : crond is buggy, it doesn't close its fd's before forking !

. `dirname $0`/functions

option	bin		reserved_option	/usr/sbin/crond
option	cmdline		reserved_option	'daemon $bin'

pidfile=/var/run/cron.pid
crontab=/etc/crontab
crontabdir=/var/spool/cron

function fct_pre_start {
   if [ ! -d $crontabdir] ; then
       mkdir -p -m 750 $crontabdir || return 1
   fi
}

load_config