service(8) uses programs outside default PATH

Bug #1008892 reported by Kjetil Torgrim Homme on 2012-06-05
This bug affects 6 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)

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.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sysvinit (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon) on 2013-05-17
Changed in sysvinit (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Jure Sah (dustwolfy) wrote :

Amazingly this is still not fixed in 2018.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers