floppym     15/07/13 15:07:47

  Added:                cronie-systemd.patch
  Log:
  systemd: Eliminate EnvironmentFile, bug 554664. Switch to forking mode so we 
can detect startup errors.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
0BBEEA1FEA4843A4)

Revision  Changes    Path
1.1                  sys-process/cronie/files/cronie-systemd.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/cronie/files/cronie-systemd.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/cronie/files/cronie-systemd.patch?rev=1.1&content-type=text/plain

Index: cronie-systemd.patch
===================================================================
>From 11d255eb05ae9814c16cd443a7710d99492e16c1 Mon Sep 17 00:00:00 2001
From: Mike Gilbert <flop...@gentoo.org>
Date: Mon, 13 Jul 2015 10:59:57 -0400
Subject: [PATCH] Adjust systemd service unit for Gentoo

---
 contrib/cronie.systemd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/cronie.systemd b/contrib/cronie.systemd
index ad46899..7a6c1a9 100644
--- a/contrib/cronie.systemd
+++ b/contrib/cronie.systemd
@@ -3,10 +3,11 @@ Description=Command Scheduler
 After=auditd.service nss-user-lookup.target systemd-user-sessions.service 
time-sync.target ypbind.service
 
 [Service]
-EnvironmentFile=/etc/sysconfig/crond
-ExecStart=/usr/sbin/crond -n $CRONDARGS
+ExecStart=/usr/sbin/crond
 ExecReload=/bin/kill -HUP $MAINPID
 KillMode=process
+Type=forking
+PIDFile=/var/run/crond.pid
 
 [Install]
 WantedBy=multi-user.target
-- 
2.4.5





Reply via email to