[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#575404: crontab fail to run /etc/init.d/nscd

Package: nscd
Version: 2.7-18lenny1
Severity: normal
Tags: patch

/etc/init.d/nscd file call start-stop-daemon
but without path. So, when called by crontab, 
/etc/init.d/nscd will fail.

To reproduce the issue, add following line to root crontab
* * * * * /etc/init.d/nscd status >/tmp/nscd.log 2>&1

wait for the end of minute, and cat /tmp/nscd.log. You'll get:
Status of Name Service Cache Daemon service: /etc/init.d/nscd: line 64: start-stop-daemon: command not found

And nscd is also reported to run whenever it is stopped!

/etc/init.d/nscd script need to be corrected in writing full path
to start-stop-daemon which is /sbin/start-stop-daemon.

-- System Information:
Debian Release: 5.0.3
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686-bigmem (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages nscd depends on:
ii  libc6                       2.7-18lenny1 GNU C Library: Shared libraries

nscd recommends no packages.

nscd suggests no packages.

-- no debconf information

Reply to: