You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
980 B
34 lines
980 B
From d022f457d838251963b23697d7ec907d43b637ac Mon Sep 17 00:00:00 2001
|
|
From: Mike Gilbert <floppym@gentoo.org>
|
|
Date: Sat, 16 Mar 2019 20:57:37 +0100
|
|
Subject: [PATCH] Adjust systemd service unit for Gentoo
|
|
|
|
forward-ported to v1.5.3 by Lars Wendler <polynomial-c@gentoo.org>
|
|
---
|
|
contrib/cronie.systemd | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/contrib/cronie.systemd b/contrib/cronie.systemd
|
|
index 19f2a98..6f4c608 100644
|
|
--- a/contrib/cronie.systemd
|
|
+++ b/contrib/cronie.systemd
|
|
@@ -3,12 +3,13 @@ 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
|
|
+ExecStart=/usr/sbin/crond
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=30s
|
|
+Type=forking
|
|
+PIDFile=/run/crond.pid
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
--
|
|
2.21.0
|
|
|