[Pkg-cron-devel] [pkg-cron] 01/12: Add dependency on nss-user-lookup.target in the definition which properly fixes the issues when cron is started before centralised user repositories are available (e.g. LDAP or Active Directory). This should avoid errors in syslog similar to the following: "crond[PID]: (CRON) bad username (/etc/cron.d/JOBNAME)"

Javier Fernandez-Sanguino Peña jfs at moszumanska.debian.org
Mon Mar 12 22:52:32 UTC 2018


This is an automated email from the git hooks/post-receive script.

jfs pushed a commit to branch master
in repository pkg-cron.

commit 45b9b071885d8c1c8838e94fe29eff71d2d27f12
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date:   Mon Mar 12 23:11:47 2018 +0100

    Add dependency on nss-user-lookup.target in the definition which properly fixes
    the issues when cron is started before centralised user repositories are
    available (e.g. LDAP or Active Directory). This should avoid errors in syslog
    similar to the following: "crond[PID]: (CRON) bad username
    (/etc/cron.d/JOBNAME)"
    
    Also remove Type=idle, which was not the correct fix to apply for this issue.
---
 debian/cron.service | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/debian/cron.service b/debian/cron.service
index 2e1fbd5..8a1bf8f 100644
--- a/debian/cron.service
+++ b/debian/cron.service
@@ -1,14 +1,13 @@
 [Unit]
 Description=Regular background program processing daemon
 Documentation=man:cron(8)
-After=remote-fs.target
+After=remote-fs.target nss-user-lookup.target
 
 [Service]
 EnvironmentFile=-/etc/default/cron
 ExecStart=/usr/sbin/cron -f $EXTRA_OPTS
 IgnoreSIGPIPE=false
 KillMode=process
-Type=idle
 
 [Install]
 WantedBy=multi-user.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cron/pkg-cron.git



More information about the Pkg-cron-devel mailing list