Cronies systemd script use KillMode=process. rhbz#919290

This commit is contained in:
Marcela Mašláňová 2013-09-25 12:39:11 +02:00
parent bce1943a1d
commit ed73090ea1
2 changed files with 15 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Name: cronie
Version: 1.4.11 Version: 1.4.11
Release: 4%{?dist} Release: 4%{?dist}
Patch0: correct-env.patch Patch0: correct-env.patch
Patch1: unitfile-killprocess.patch
License: MIT and BSD and ISC and GPLv2+ License: MIT and BSD and ISC and GPLv2+
Group: System Environment/Base Group: System Environment/Base
URL: https://fedorahosted.org/cronie URL: https://fedorahosted.org/cronie
@ -76,7 +77,8 @@ extra features.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1 -b .jobenv
%patch1 -p1
%build %build
%configure \ %configure \
@ -203,6 +205,7 @@ exit 0
%changelog %changelog
* Wed Sep 25 2013 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.11-4 * Wed Sep 25 2013 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.11-4
- some jobs are not executed because not all environment variables are set 995590 - some jobs are not executed because not all environment variables are set 995590
- cronie's systemd script use "KillMode=process" 919290
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.11-3 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -0,0 +1,11 @@
diff -up cronie-1.4.11/contrib/cronie.systemd.old2 cronie-1.4.11/contrib/cronie.systemd
--- cronie-1.4.11/contrib/cronie.systemd.old2 2013-07-18 14:27:08.000000000 +0200
+++ cronie-1.4.11/contrib/cronie.systemd 2013-09-25 12:36:10.129374891 +0200
@@ -5,6 +5,7 @@ After=syslog.target auditd.service syste
[Service]
EnvironmentFile=/etc/sysconfig/crond
ExecStart=/usr/sbin/crond -n $CRONDARGS
+KillMode=process
[Install]
WantedBy=multi-user.target