Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915699

Summary: sys-process/cronie-1.7.0: cronie.service: Failed to load environment files: No such file or directory
Product: Gentoo Linux Reporter: Craig Andrews <candrews>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: candrews
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=915724
Whiteboard:
Package list:
Runtime testing required: ---

Description Craig Andrews gentoo-dev 2023-10-13 21:06:28 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2023-10-13 23:11:08 UTC
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(+)