[cronie] enable crond even with systemctl
Marcela Mašláňová
mmaslano at fedoraproject.org
Mon Jan 17 13:31:51 UTC 2011
commit 796c147edd9eae8a3d9fd664f6b4855c27681ccb
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date: Mon Jan 17 14:27:10 2011 +0100
enable crond even with systemctl
cronie.spec | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/cronie.spec b/cronie.spec
index 95e851e..40da82c 100644
--- a/cronie.spec
+++ b/cronie.spec
@@ -6,7 +6,7 @@
Summary: Cron daemon for executing programs at set times
Name: cronie
Version: 1.4.6
-Release: 7%{?dist}
+Release: 8%{?dist}
License: MIT and BSD and ISC and GPLv2
Group: System Environment/Base
URL: https://fedorahosted.org/cronie
@@ -133,7 +133,8 @@ install -m 644 %SOURCE1 $RPM_BUILD_ROOT/lib/systemd/system/crond.service
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/chkconfig --add crond
+/sbin/chkconfig --add crond >/dev/null 2>&1 || :
+/bin/systemctl enable crond.service >/dev/null 2>&1 || :
%post anacron
[ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily
@@ -212,6 +213,9 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
%attr(0644,root,root) %{_sysconfdir}/cron.d/dailyjobs
%changelog
+* Mon Jan 17 2011 Marcela Mašláňová <mmaslano at redhat.com> - 1.4.6-8
+- enable crond even with systemctl
+
* Thu Dec 16 2010 Marcela Mašláňová <mmaslano at redhat.com> - 1.4.6-7
- 663193 rewritten selinux support
More information about the scm-commits
mailing list