From ee86afea159cb60924d31626e8a44eb5581648d9 Mon Sep 17 00:00:00 2001 From: Andrew Barchuk Date: Thu, 5 Aug 2021 19:19:10 +0200 Subject: [PATCH] cronie: prevent from failing without sendmail. If a job produces output cronie will attempt to send it's output with sendmail, failing if the command doesn't exist. sendmail failures are not handled gracefully and will result in remaining cron scripts to not be executed. The change makes cronie service use syslog so cron jobs that produce output are working out of the box. --- srcpkgs/cronie/files/cronie/run | 2 +- srcpkgs/cronie/template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/cronie/files/cronie/run b/srcpkgs/cronie/files/cronie/run index d3045c363c6d..a47453848cb6 100755 --- a/srcpkgs/cronie/files/cronie/run +++ b/srcpkgs/cronie/files/cronie/run @@ -1,3 +1,3 @@ #!/bin/sh [ -r conf ] && . ./conf -exec cronie-crond -n $OPTS 2>&1 +exec cronie-crond -ns $OPTS 2>&1 diff --git a/srcpkgs/cronie/template b/srcpkgs/cronie/template index 6c1c7adb523d..b3789c510f8a 100644 --- a/srcpkgs/cronie/template +++ b/srcpkgs/cronie/template @@ -1,7 +1,7 @@ # Template file for 'cronie' pkgname=cronie version=1.5.7 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-inotify --without-selinux --with-pam --enable-anacron --enable-pie --enable-relro"