Package: lsb-base
Version: 3.2-21
Severity: normal

There appears to be a problem with /lib/lsb/init-functions start_daemon()

The argument to the new --chdir option passed to start-stop-daemon is
'$PWD'. It appears that since "--chdir '$PWD'" is contained in double
quotes, the single quotes are preserved verbatim. I don't know exactly
at what point $PWD gets evaluated, but it shows the current working
directory when you echo $args. Ahh, the joys of bash programming. 

In any case start stop daemon hears that it should change to working
directory "'/'" which includes the single quotes and of course no such
directory actually exists. The result is that anything using this init
function won't start which is kind of a bummer. 

I find I get the "expected" behaviour when i instead use

args="--start --chdir $PWD --nicelevel $nice --quiet --oknodo"
 
though I admit that I'm not entirely sure that the single quotes weren't
trying to achive something other than what I "expect". 

Kevin

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'testing'), (400, 'stable'), (300, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-rc8.011-wl (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages lsb-base depends on:
ii  ncurses-bin               5.7+20090314-1 terminal-related programs and man 
ii  sed                       4.1.5-8        The GNU sed stream editor

lsb-base recommends no packages.

lsb-base suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to