# fcron/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The following command was used: ocgitfetch --run \ https://github.com/yo8192/fcron.git #--------------------------------------------------------------------- 2. To start or restart "fcron" in this distro (this assumes execution by "root"): pkill fcron fcron -f --nosyslog --logfilepath /var/log/fcron >& /dev/null & The following command should also work: service fcron restart In Laclin, don't put these commands in "/etc/rc.local". Let the usual package setup procedure take care of it. #--------------------------------------------------------------------- 3. Additional Laclin "fcron" basics: 3.1. The PATH supplied to scripts that "fcron" runs is very limited. In some cases, the scripts will need to set PATH themselves. 3.2. "cron" data files stored in the "/etc/cron.*/" directories (for example, "/etc/cron.daily/") need to be executable (i.e., chmod 755) or they won't be processed. 3.3. If the file "/etc/crontab" exists, changes to that file aren't detected automatically. The following command needs to be executed to notify "fcron" of the changes: sudo fcrontab /etc/crontab Warning: The preceding command will overwrite any "fcron" entries that "root" has installed previously using "fcrontab -e" or by other means. 3.4. "*/15" in the first column of an "/etc/crontab" entry means to run the command specified every 15 minutes on the quarter-hour [as op- posed to every 15 minutes from program start]. Example of an entry of this type: */15 * * * * root /path/some-script 3.5. A script to be executed by "fcron" should look something like this: #!/bin/sh cd /tmp || exit 1 # Set up PATH appropriately PATH=/some/path:/another/path:$PATH PROG=program-to-run $PROG > /tmp/$PROG.log 2> /tmp/$PROG.err & exit 0 This applies both to scripts that are executed via "/etc/crontab" and to scripts that are stored in the "/etc/cron.*" directories. 3.6. "fcron" doesn't support the "/etc/cron.d/" directory that is sup- ported by Vixie "cron". #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] build = default license = See "license*.txt" in installed tree licfile = LICENSE tmpsize = 4M #--------------------------------------------------------------------- [depends] actools gawk grep joe readline sed sendmail #--------------------------------------------------------------------- [configure] ETCDIR=/etc MANBASE=$PKGDIR_PROD/man mkdir -p $ETCDIR $MANBASE pkill fcron || true sleep 1 APASS=`od -Anone /dev/random | head -1 | sed -e 's/ //g'` mkdir -p /home/jail if test -z "`grep '^fcron:' /etc/group`" ; then groupadd fcron fi if test -z "`grep '^fcron:' /etc/passwd`" ; then useradd fcron -g fcron -d /home/jail \ -s /bin/bash -p $APASS fi autoupdate autoconf bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-dependency-tracking \ --enable-shared=yes \ --enable-static=no \ --localstatedir=/var \ --mandir=$MANBASE \ --sysconfdir=$ETCDIR \ --with-answer-all=no \ --with-boot-install=no \ --with-db2man=no \ --with-editor=/usr/bin/joe \ --with-piddir=/run \ --without-sendmail rm -fr doc mkdir doc cat > doc/Makefile << END all: clean: install: doc-if-none: install-staged: perms: END #--------------------------------------------------------------------- [postbuild] BINDIR=$PKGDIR_PROD/bin SBINDIR=$PKGDIR_PROD/sbin SPOOLDIR=/var/spool/fcron mkdir -p $BINDIR $SBINDIR $SPOOLDIR SD=$PKGDIR_SPECIAL cp -p $SD/fcron-init-d /etc/init.d/fcron cp -p $SD/run-parts $SBINDIR/ cp -p $SD/systab.orig $SPOOLDIR/ chmod 755 /etc/init.d/fcron chmod 755 $SBINDIR/run-parts install -vdm754 /etc/cron.{minutely,hourly,daily,weekly,monthly} cd $BINDIR ln -nsf fcrontab crontab fcrontab -z -u systab #--------------------------------------------------------------------- [setup.boot] if [ -f /etc/crontab ]; then fcrontab /etc/crontab fi fcron -f --nosyslog --logfilepath /var/log/fcron >& /dev/null & #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian_page = tbd url_home = tbd url_lfs = https://www.linuxfromscratch.org/blfs/view/\ 10.0/general/fcron.html url_tarball = git # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 211012 Added package. Started with 3.2.1. 211205 Updated to 3.3.1 240715 Updated to 87e8f9536 - "git" hash