Public bug reported:

Binary package hint: lsb

http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-
generic/iniscrptfunc.html says that "Each conforming init script shall
execute the commands in the file /lib/lsb/init-functions in the current
environment...." I read this to include the current working directory.
However, start-stop-daemon changes the current directory to root, unless
--chdir is supplied. Therefore, I believe that start_daemon should
supply --chdir $PWD to start-to-stop-daemon.

Not doing so causes problems with some rpm-based packages, that cd to a
specific directory before starting. I've attached a patch that seems to
work.

$ lsb_release -rd
Description:    Ubuntu 8.04
Release:        8.04
$ apt-show-versions lsb-base
lsb-base/hardy uptodate 3.2-4ubuntu1

** Affects: lsb (Ubuntu)
     Importance: Undecided
         Status: New

-- 
start_daemon should supply --chdir $PWD to start-to-stop-daemon
https://bugs.launchpad.net/bugs/234098
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to