systemctl start cronie.service results in the service failing to start and this output in the journal: --- Oct 13 17:01:44 irrational systemd[1]: cronie.service: Failed to load environment files: No such file or directory Oct 13 17:01:44 irrational systemd[1]: cronie.service: Failed to run 'start' task: No such file or directory Oct 13 17:01:44 irrational systemd[1]: cronie.service: Failed with result 'resources'. --- `systemctl cat cronie.service` returns: ``` [Unit] Description=Command Scheduler After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service autofs.service [Service] EnvironmentFile=/etc/sysconfig/crond ExecStart=/usr/sbin/crond -n $CRONDARGS ExecReload=/bin/kill -URG $MAINPID KillMode=process Restart=on-failure RestartSec=30s [Install] WantedBy=multi-user.target ``` The file `/etc/sysconfig/crond` does not exist. Previous versions work fine. Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b27c5fc01548928042ad09f4983ffb563163dba commit 4b27c5fc01548928042ad09f4983ffb563163dba Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-13 23:10:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-13 23:10:38 +0000 sys-process/cronie: fix systemd unit file Closes: https://bugs.gentoo.org/915699 Signed-off-by: Sam James <sam@gentoo.org> .../{cronie-1.7.0.ebuild => cronie-1.7.0-r1.ebuild} | 4 ++++ .../files/cronie-1.7.0-optional-envionment.patch | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+)