From d4e31b4b7b82c56d27e794a0f70f0c8ddb900f2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 21 Jun 2012 06:57:05 +0000 Subject: [PATCH] - rel 20 - use reload in logrotate config for comaptibility with systemd, as flush-logs is just an alias for reload - fix reload in systemd service Changed files: cron.logrotate -> 1.3 crond.service -> 1.2 cronie.spec -> 1.65 --- cron.logrotate | 2 +- crond.service | 1 + cronie.spec | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cron.logrotate b/cron.logrotate index cd2c36b..add58c2 100644 --- a/cron.logrotate +++ b/cron.logrotate @@ -1,6 +1,6 @@ /var/log/cron { create 660 root crontab postrotate - /sbin/service crond flush-logs >/dev/null + /sbin/service crond reload >/dev/null endscript } diff --git a/crond.service b/crond.service index 0e680ba..127de30 100644 --- a/crond.service +++ b/crond.service @@ -5,6 +5,7 @@ After=syslog.target auditd.service sssd.service ypbind.service [Service] EnvironmentFile=/etc/sysconfig/cron ExecStart=/usr/sbin/crond -n $CROND_ARGS +ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/cronie.spec b/cronie.spec index 6213cb1..83ade62 100644 --- a/cronie.spec +++ b/cronie.spec @@ -17,7 +17,7 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.4.8 -Release: 19 +Release: 20 License: MIT and BSD and GPL v2 Group: Daemons Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz -- 2.44.0