diff --git a/srcpkgs/cronie/files/crond.logrotate b/srcpkgs/cronie/files/crond.logrotate index cb4d5e1ed1..8a7e786303 100644 --- a/srcpkgs/cronie/files/crond.logrotate +++ b/srcpkgs/cronie/files/crond.logrotate @@ -1,5 +1,7 @@ /var/log/cron { sharedscripts copytruncate - missingok + postrotate + /etc/init.d/crond reload >/dev/null 2>&1 || true + endscript } diff --git a/srcpkgs/cronie/files/crond.rc b/srcpkgs/cronie/files/crond.rc index 3acbb21750..fb32b750f8 100644 --- a/srcpkgs/cronie/files/crond.rc +++ b/srcpkgs/cronie/files/crond.rc @@ -2,9 +2,22 @@ command=/usr/sbin/crond pidfile=/var/run/crond.pid +extra_commands="reload" depend() { need localmount after bootmisc } + +reload() +{ + if [ ! -f "${pidfile}" ]; then + eerror "crond not running" + return 1 + fi + ebegin "Reloading configuration and re-opening log file" + start-stop-daemon --stop --oknodo --signal HUP \ + --pidfile "${pidfile}" + eend $? +} diff --git a/srcpkgs/cronie/template b/srcpkgs/cronie/template index 3e11d2099e..9f12071a60 100644 --- a/srcpkgs/cronie/template +++ b/srcpkgs/cronie/template @@ -1,7 +1,6 @@ # Template file for 'cronie' pkgname=cronie -version=1.4.3 -revision=2 +version=1.4.4 distfiles="https://fedorahosted.org/releases/c/r/cronie/cronie-$version.tar.gz" build_style=gnu_configure configure_args="--with-inotify --without-selinux --with-pam --disable-anacron @@ -9,7 +8,7 @@ configure_args="--with-inotify --without-selinux --with-pam --disable-anacron --localstatedir=/var" short_desc="Runs specified programs at scheduled times" maintainer="Juan RP " -checksum=3f498ad156bdf0f5fe3c619f3e13c0b07ccaf4bd921c86c526fe1de7b86fccae +checksum=cdceb796afe78e3955131ddec07b31e6b1600a72b1178c33d3074c6e0a021e60 long_desc=" Cronie contains the standard UNIX daemon crond that runs specified programs at scheduled times and related tools. It is based on the original cron and