Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915699 - sys-process/cronie-1.7.0: cronie.service: Failed to load environment files: No such file or directory
Summary: sys-process/cronie-1.7.0: cronie.service: Failed to load environment files: N...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-13 21:06 UTC by Craig Andrews
Modified: 2023-10-15 10:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)