#1056575 daily cronjob not fetching new articles after switching to systemd-cron

Package:
sn
Source:
sn
Description:
Small NNTP server for leaf sites
Submitter:
Klaus Rein
Date:
2023-11-23 11:24:04 UTC
Severity:
normal
#1056575#5
Date:
2023-11-23 11:15:53 UTC
From:
To:
After switching to systemd-cron the daily cronjob in /etc/cron.daily/sn
does not fetch new articles any more.

The problem seems to be that systemd does not allow background jobs in
shell scripts.

The fix is simple:
--- /etc/cron.daily/sn.orig     2012-08-24 23:05:41.000000000 +0200
+++ /etc/cron.daily/sn  2023-11-23 11:21:57.814847259 +0100
@@ -34,5 +34,5 @@
  done

  if [ "$RUNFROM" = cron ]; then
-    /usr/sbin/snget >/dev/null 2>&1 &
+    /usr/sbin/snget >/dev/null 2>&1


Klaus.