Typo
[linux_from_scratch_hints.git] / OLD / dcron.txt
blobce9891d20d4f0db22e78ae68feb82b1b6217d7e2
1 TITLE:          Patching and compiling Dillon's Cron Daemon
2 LFS VERSION:    any
3 AUTHOR:         Leslie Polzer <leslie.polzer@gmx.net>
5 SYNOPSIS:
6         dcron is a stable cron implementation without bells and whistles.
8 HINT:
10 Contents
11 --------
12 1 Why use dcron when there's fcron?
13 2 Preparing the files
14 3 Compiling
15 4 Post-Install
16 5 Frontends
18 1 Why use dcron when there's fcron?
19 -----------------------------------
20 - dcron is SIMPLE:
21         dcron just gives you two binaries, crond and crontab, and consists
22         only of a few source files.
23 - dcron is SMALL:
24         binaries are only about 25k
25 - dcron is MATURE:
26         it is many distributions' default cron and in use since ~1994.
27 - dcron is SECURE:
28         that's the consequence of being simple and mature.
29 - dcron WORKS:
30         fcron only worked for root on my box, no matter how hard I tried.
33 2 Preparing the files
34 ---------------------
35 Download dcron 2.3.3 here:
36         http://www.ibiblio.org/pub/Linux/system/daemons/cron/dcron-2.3.3.tar.gz
38 You will also need this patch I made:
39         http://linuxfromscratch.org/~timothy/misc/dcron-2.3.3.patch
41 Unpack the tarball, put the patch into the resulting folder and cd into it.
44 3 Compiling
45 -----------
46 Apply the patch:
48         patch < dcron-2.3.3.patch
50 Now you can do the actual compile and install:
51         
52         make CC="gcc $CFLAGS"
53         make install
55 Last line as superuser.
58 4 Post-Install
59 --------------
60 Start the cron daemon from your bootscripts.
61 dcron can only log to STDOUT so add a I/O redirect:
63         /usr/bin/crond -l8 >> /var/log/cron.log 2>&1
65 '8' is the loglevel.
67 If you want to allow every user to use cron, you're fine now.
68 If you want to restrict access to cron, do:
70         groupadd cron
71         chown root.cron /usr/bin/crontab
72         chmod 4750 /usr/bin/crontab
73         
74 Now add every user that is allowed to use cron to the new group 'cron'.
77 5 Frontends
78 -----------
79 If you want a nice GTK frontend to cron (hate to remember those field orders!),
80 look out for 'gcrontab'. There is also a frontend for GNOME and maybe one for
81 the console.
84 Leslie