Open asterissco opened 10 months ago
It would make sense to have a proper HOWTO document created from this but it would need some cleanup.
Oks, i do it and send on comment! thank for cronie!
Ubuntu has a package for cronie by now: Ubuntu mantic (23.10) has cronie 1.6.1, Ubuntu noble (24.04) has cronie 1.7.1. Here's a simplified version of what Ubuntu's 1.7.1 noble package is doing in its debian/rules
Makefile:
CONFIG_OPTIONS =
CONFIG_OPTIONS += --disable-anacron
CONFIG_OPTIONS += --with-editor=/usr/bin/sensible-editor
CONFIG_OPTIONS += --with-pam
CONFIG_OPTIONS += --with-selinux
CONFIG_OPTIONS += --with-inotify
CONFIG_OPTIONS += --with-audit
override_dh_auto_configure:
SPOOL_DIR=/var/spool/cron/crontabs \
dh_auto_configure CRON_GROUP=crontab -- $(CONFIG_OPTIONS)
override_dh_install:
dh_install
install -m 644 debian/etc/cronie.deny debian/cronie/etc/cron.deny
install -d -m 755 debian/cronie/lib/systemd/system/
install -m 644 contrib/cronie.systemd debian/cronie/lib/systemd/system/cronie.service
If it still needs documentation for older versions of Ubuntu, matching recent packaging closely may be a good idea to minimize future need for migration during update. Just an idea.
Cronie is a cron implementation used in red-hat that supports the CRON_TZ prefix with which you can set a time zone of a cron statement
The service works well, but the crontab editor that comes with it gives a lot of permission problems, so we are going to install cronie by hand, leaving everything else the same
Compilation
Creating and mapping folders with links
We copy the binary to /usr/local/bin and modify the cron service in systemd so that it loads cronie
Reload
And it should be working now