| 1 |
AUTHOR: Leslie Polzer <leslie.polzer@gmx.net> |
|---|
| 2 |
|
|---|
| 3 |
DATE: 2003-09-14 |
|---|
| 4 |
|
|---|
| 5 |
LICENSE: GNU Free Documentation License Version 1.2 |
|---|
| 6 |
|
|---|
| 7 |
SYNOPSIS: Fixing, compiling and installing dcron. |
|---|
| 8 |
|
|---|
| 9 |
DESCRIPTION: |
|---|
| 10 |
This guide documents how to fix, compile and install dcron, a light-weight |
|---|
| 11 |
and stable cron for UNIX systems without bells and whistles. |
|---|
| 12 |
|
|---|
| 13 |
PREREQUISITES: |
|---|
| 14 |
None. |
|---|
| 15 |
|
|---|
| 16 |
HINT: |
|---|
| 17 |
|
|---|
| 18 |
Contents |
|---|
| 19 |
-------- |
|---|
| 20 |
1 Why use dcron when there's fcron? |
|---|
| 21 |
2 Preparing the files |
|---|
| 22 |
3 Compiling |
|---|
| 23 |
4 Post-Install |
|---|
| 24 |
5 Frontends |
|---|
| 25 |
|
|---|
| 26 |
1 Why use dcron when there's fcron? |
|---|
| 27 |
----------------------------------- |
|---|
| 28 |
- dcron is SIMPLE: |
|---|
| 29 |
dcron just gives you two binaries, crond and crontab, and consists |
|---|
| 30 |
only of a few source files. |
|---|
| 31 |
- dcron is SMALL: |
|---|
| 32 |
binaries (i386-elf) are only about 25k |
|---|
| 33 |
- dcron is MATURE: |
|---|
| 34 |
it is many distributions' default cron and in use since ~1994. |
|---|
| 35 |
- dcron is SECURE: |
|---|
| 36 |
that's the consequence of being simple and mature. |
|---|
| 37 |
- dcron WORKS: |
|---|
| 38 |
fcron only worked for root on my box, no matter how hard I tried. |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
2 Preparing the files |
|---|
| 42 |
--------------------- |
|---|
| 43 |
Download dcron 2.3.3 here: |
|---|
| 44 |
http://www.ibiblio.org/pub/Linux/system/daemons/cron/dcron-2.3.3.tar.gz |
|---|
| 45 |
|
|---|
| 46 |
You will also need this patch I made: |
|---|
| 47 |
http://www.fmi.uni-passau.de/~polzer/patches/dcron-2.3.3.patch |
|---|
| 48 |
|
|---|
| 49 |
Unpack the tarball, put the patch into the resulting folder and cd into it. |
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
3 Compiling |
|---|
| 53 |
----------- |
|---|
| 54 |
Apply the patch: |
|---|
| 55 |
|
|---|
| 56 |
patch < dcron-2.3.3.patch |
|---|
| 57 |
|
|---|
| 58 |
Now you can do the actual compile and install: |
|---|
| 59 |
|
|---|
| 60 |
make CC="gcc $CFLAGS" |
|---|
| 61 |
make install |
|---|
| 62 |
|
|---|
| 63 |
Last line as superuser. |
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
4 Post-Install |
|---|
| 67 |
-------------- |
|---|
| 68 |
Start the cron daemon from your bootscripts. |
|---|
| 69 |
dcron can only log to STDOUT so add a I/O redirect: |
|---|
| 70 |
|
|---|
| 71 |
/usr/bin/crond -l8 >> /var/log/cron.log 2>&1 |
|---|
| 72 |
|
|---|
| 73 |
'8' is the loglevel. |
|---|
| 74 |
|
|---|
| 75 |
If you want to allow every user to use cron, you're fine now. |
|---|
| 76 |
If you want to restrict access to cron, do: |
|---|
| 77 |
|
|---|
| 78 |
groupadd cron |
|---|
| 79 |
chown root.cron /usr/bin/crontab |
|---|
| 80 |
chmod 4750 /usr/bin/crontab |
|---|
| 81 |
|
|---|
| 82 |
Now add every user that is allowed to use cron to the new group 'cron'. |
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
5 Frontends |
|---|
| 86 |
----------- |
|---|
| 87 |
If you want a nice GTK frontend to cron (hate to remember those field orders!), |
|---|
| 88 |
look out for 'gcrontab'. There is also a frontend for GNOME and maybe one for |
|---|
| 89 |
the console. |
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 |
CHANGELOG: |
|---|
| 93 |
[2003-09-14] |
|---|
| 94 |
* Initial release |
|---|