Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

77.11. cronie-1.7.2

Cron daemon and crontab: the scheduler for the crontabs users write

1.7.2-1 · ISC · 0.2 SBU · 294.3 KiB, 12 files · 41_system, 207 of 1047 · ports/core/base/cronie

Homepage: https://github.com/cronie-crond/cronie

cronie is the cron of Fedora and RHEL: crond, the daemon that runs each user’s scheduled jobs, and crontab, the program a user installs, lists and removes their crontab with, plus cronnext, which prints when a job runs next.

On KDOS it is the scheduler for the crontabs people write, and only for those. System Settings’ Task Scheduler page (kcron) edits a user’s jobs through crontab. The system’s own schedules are not cron jobs: they stay snooze timers in /etc/kdos/timers.d, run by 18_timers.sh, and a user’s timers in ~/.config/kdos/timers.d are run by their user services. crond is started at boot from an init script under ksvc. See No systemd init, units or service manager.

Depends on: nano.

Required by (1): kcron.

Sources: cronie-1.7.2.tar.gz (266.1 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install cronie'

build.sh:

./configure \
	--prefix=/usr \
	--sysconfdir=/etc \
	--localstatedir=/var \
	--runstatedir=/run \
	--disable-anacron \
	--disable-syscrontab \
	--with-inotify \
	--without-pam \
	--without-selinux \
	--without-audit \
	--with-editor=/usr/bin/nano
make
make DESTDIR=$PKG install

chmod 4755 "$PKG/usr/bin/crontab"
install -d -m 755 "$PKG/etc/cron.d"
install -m 644 /dev/null "$PKG/etc/cron.deny"

Programs: crond, cronnext, crontab.

Directories: /etc/cron.d, /usr/share/licenses/cronie.

crontab is setuid root. It writes /var/spool/cron/<user> and touches the spool directory, which is mode 0700 and owned by root; an ordinary user can do neither, and crontab drops back to the caller’s identity for everything else (running the editor, reading the new file). make install installs it 0755, so the recipe sets mode 4755 itself. It is setuid, not setgid to a crontab group as some distributions build it, because KDOS ships no setgid binary; see setuid binaries. The spool directory is not in the package, because kpkgadd would create it 0755; the init script, /etc/init.d/85_crond.sh, creates it 0700 when it is missing, before it starts crond, which refuses to start without it.

/etc/cron.deny ships empty. crontab refuses every user but root unless /etc/cron.allow or /etc/cron.deny exists; an empty deny list lets every account keep a crontab. The recipe also creates the empty /etc/cron.d, which crond reads at every reload and logs a failure for when it is missing.

Job output. Without -s, crond mails a job’s output through /usr/sbin/sendmail, which on KDOS is msmtp and has nowhere to deliver a local message. The init script runs crond -n -s -m off -P:

Alpine carries one patch, completing the error_func prototype of load_entry() for GCC 15’s default C23. The tree compiles C with -std=gnu11, under which the original declaration is valid, so the patch is not carried.