[Bug 1008892] [NEW] service(8) uses programs outside default PATH

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Tue Jun 5 08:12:06 UTC 2012


Public bug reported:

When running /usr/bin/service from cron, PATH is set to the default
value ("getconf PATH"), which doesn't include /sbin.

sample output:
   /usr/bin/service: 123: exec: status: not found

The script should add /sbin to $PATH explicitly, e.g.
  PATH="/sbin:$PATH"

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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/1008892

Title:
  service(8) uses programs outside default PATH

Status in “sysvinit” package in Ubuntu:
  New

Bug description:
  When running /usr/bin/service from cron, PATH is set to the default
  value ("getconf PATH"), which doesn't include /sbin.

  sample output:
     /usr/bin/service: 123: exec: status: not found

  The script should add /sbin to $PATH explicitly, e.g.
    PATH="/sbin:$PATH"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1008892/+subscriptions




More information about the foundations-bugs mailing list