1 AUTHOR: Sune Molgaard <sune at molgaard.org>
5 LICENSE: Creative Commons Attribution-NonCommercial-ShareAlike License
6 http://creativecommons.org/licenses/by-nc-sa/1.0/
8 SYNOPSIS: Installing the at daemon.
12 This hint will guide you through installing the at daemon, that facilitates delayed command execution.
16 http://www.linuxfromscratch.org/patches/downloads/at/at-3.1.8-fixes-1.patch
17 http://www.linuxfromscratch.org/patches/downloads/at/at-3.1.8-fcron.patch
21 An LFS system and sendmail and fcron from BLFS.
30 2. Package Dependencies
31 3. Package Installation
37 Install the init script
44 The at package facilitates delayed program execution. The original location is no longer available, and the package seems to be maintained by debian now.
46 ========================
47 2. PACKAGE DEPENDENCIES:
48 ========================
50 At seems to depend on an MTA to report failures and such, so installing sendmail as per the BLFS book is recommended. Furthermore, it relies on a cron, and I have made the patch BLFS compliant, so that it relies on fcron.
60 At seems to be maintained by debian now, so download the package from:
62 ftp://ftp.debian.org/debian/pool/main/a/at/at_3.1.8-11.tar.gz
68 patch -Np1 -i ../at-3.1.8-fixes-1.patch
69 patch -Np1 -i ../at-3.1.8-fcron.patch
75 The values presented here are based on a relatively clean LFS/BLFS build, and should thus be appropriate for most. However, you may want to consult ./configure --help.
77 ./configure --prefix=/usr --with-daemon_username=nobody --with-daemon_groupname=nogroup
87 chmod 755 /var/spool/fcron
89 ------------------------
90 Install the init script:
91 ------------------------
93 cp debian/rc /etc/rc.d/init.d/atd
95 cat > /etc/rc.d/init.d/atd << "EOF"
97 # Begin $rc_base/init.d/atd
99 # Based on various other init scripts.
100 # Rewritten by Sune Molgaard - sune@molgaard.org
108 echo "Starting atd..."
109 loadproc /usr/sbin/atd
112 echo "Stopping atd..."
127 echo "Usage: $0 {start|stop|restart|status}"
132 # End $rc_base/init.d/atd
135 chmod 755 /var/spool/fcron
137 ln -s /etc/rc.d/init.d/atd /etc/rc.d/rc0.d/K07atd
138 ln -s /etc/rc.d/init.d/atd /etc/rc.d/rc2.d/S41atd
139 ln -s /etc/rc.d/init.d/atd /etc/rc.d/rc3.d/S41atd
140 ln -s /etc/rc.d/init.d/atd /etc/rc.d/rc4.d/S41atd
141 ln -s /etc/rc.d/init.d/atd /etc/rc.d/rc5.d/S41atd
142 ln -s /etc/rc.d/init.d/atd /etc/rc.d/rc6.d/K07atd
148 I personally use the at package to schedule recordings of TV shows for when I am not at home. It can be used for a multitude of other scenarios where you have to schedule something to run at one specific time and date.
154 * Fixed a few typos...
156 Remembered to fill in the "Patch the package" section...
158 Another typo fix, and remembered to fill in the date section...
160 Became aware of the fixes patch by Jim Gifford. Included it in the
161 hint. Changed link to fcron patch from personal site to lfs site.