Bug#544942: /etc/init.d/nscd should set PATH to /sbin:...
On Sat, Sep 05, 2009 at 10:49:31AM +0200, Lubomir Host wrote:
> On Sat, Sep 05, 2009 at 09:28:29AM +0200, Vincent Danjean wrote:
> > Lubomir Host wrote:
> > > On Fri, Sep 04, 2009 at 02:25:30PM +0000, Clint Adams wrote:
> > >> On Thu, Sep 03, 2009 at 10:21:01PM +0200, Lubomir Host wrote:
> > >>> 22:19 root@Apollo [~] ##: crontab -l | grep nscd
> > >>> * * * * * if [ -z "`pidof nscd`" ]; then /etc/init.d/nscd restart; fi
> > >> How and why have you removed /sbin from root's PATH?
> > >
> > > It is fresh Debian installation, not heavy used or customized yet. Other
> > > scripts does not have problem, only this one.
> > What you propose seems to be a workaround about an other bug (missing /sbin
> > in root PATH). Before Debian decides to keep or not the workaround you
> > suggest, we need to understand the underlining bug (missing /sbin in root PATH).
> > Can you tell us exactly how to reproduce this bug ? On my systems, I've
> > no problem to restart nscd (because I have /sbin in my root PATH)
Any other hints? PATH in running cron process seems to be OK:
$ cat /proc/`pidof cron`/environ
,''`. Lubomir Host 'rajo' <rajo AT platon.sk> ICQ #: 257322664
: :' : Jabber: rajo AT jabber.platon.sk VoIP: callto://rajo207
`. `' WWW: http://rajo.platon.sk/ Platon Group: http://platon.sk/
`- GnuPG key: DC0C C7EA 55C8 B089 C41D 944A F251 A93A 2361 A82F