diff options
author | Sam James <sam@gentoo.org> | 2023-10-14 00:10:21 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-14 00:10:38 +0100 |
commit | 4b27c5fc01548928042ad09f4983ffb563163dba (patch) | |
tree | a27a791130e21adf1ec81b703d13165a58d36107 /sys-process | |
parent | mail-mta/postfix: add 3.9_pre20231012, drop 3.9_pre20231008 (diff) | |
download | gentoo-4b27c5fc01548928042ad09f4983ffb563163dba.tar.gz gentoo-4b27c5fc01548928042ad09f4983ffb563163dba.tar.bz2 gentoo-4b27c5fc01548928042ad09f4983ffb563163dba.zip |
sys-process/cronie: fix systemd unit file
Closes: https://bugs.gentoo.org/915699
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/cronie/cronie-1.7.0-r1.ebuild (renamed from sys-process/cronie/cronie-1.7.0.ebuild) | 4 | ||||
-rw-r--r-- | sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/sys-process/cronie/cronie-1.7.0.ebuild b/sys-process/cronie/cronie-1.7.0-r1.ebuild index 8dfc21e17ea9..7df18878c8a5 100644 --- a/sys-process/cronie/cronie-1.7.0.ebuild +++ b/sys-process/cronie/cronie-1.7.0-r1.ebuild @@ -33,6 +33,10 @@ RDEPEND=" sys-apps/debianutils " +PATCHES=( + "${FILESDIR}"/${P}-optional-envionment.patch +) + src_configure() { local myeconfargs=( $(use_with inotify) diff --git a/sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch b/sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch new file mode 100644 index 000000000000..b3032fe982e8 --- /dev/null +++ b/sys-process/cronie/files/cronie-1.7.0-optional-envionment.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/915699 +https://github.com/cronie-crond/cronie/commit/1a6bed1dcf1871c47fdc6d5957f00eae5a854cc7 + +From 1a6bed1dcf1871c47fdc6d5957f00eae5a854cc7 Mon Sep 17 00:00:00 2001 +From: Christian Hesse <mail@eworm.de> +Date: Fri, 13 Oct 2023 11:17:12 +0200 +Subject: [PATCH] make the environment file optional + +Starting the daemon works without additional environment variables, so +make the file optional. +--- a/contrib/cronie.systemd ++++ b/contrib/cronie.systemd +@@ -3,7 +3,7 @@ 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 ++EnvironmentFile=-/etc/sysconfig/crond + ExecStart=/usr/sbin/crond -n $CRONDARGS + ExecReload=/bin/kill -URG $MAINPID + KillMode=process |