Package: cron
Version: 3.0pl1-127
Severity: minor
Tags: patch

Hi,

Please apply this little patch that makes cron & systemd-cron play nice
together.

I would do the same in systemd-cron - as soon as I package v1.5.1
that does grok /etc/cron.allow & /etc/cron.deny -
to allow users to switch back and forth at will.

Cheers,

(non-)handling of /var/run/crond.reboot is already OK.

Alexandre Detiste



-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing'), (210, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cron depends on:
ii  adduser         3.113+nmu3
ii  debianutils     4.4+b1
ii  dpkg            1.17.22
ii  libc6           2.19-13
ii  libpam-runtime  1.1.8-3.1
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  lsb-base        4.1+Debian13+nmu1

Versions of packages cron recommends:
ii  nullmailer [mail-transport-agent]  1:1.13-1

Versions of packages cron suggests:
pn  checksecurity           <none>
ii  logrotate               3.8.7-1+b1
ii  systemd-cron [anacron]  1.4.2-1
--- postrm.orig	2014-12-14 09:33:10.330502568 +0100
+++ postrm	2014-12-14 09:33:14.926378398 +0100
@@ -1,12 +1,12 @@
 #!/bin/sh
 set -e
 
 # Conffiles that are now obsolete
 dpkg-maintscript-helper rm_conffile /etc/cron.monthly/standard "3.0pl1-113" -- "$@"
 dpkg-maintscript-helper rm_conffile /etc/cron.daily/standard "3.0pl1-124" -- "$@"
 
-if [ "$1" = "purge" ]; then 
+if [ "$1" = "purge" ] && [ ! -e /lib/systemd/system-generators/systemd-crontab-generator ]; then
     rm -f /etc/cron.allow /etc/cron.deny
 fi
 
 #DEBHELPER#

Reply via email to