service(8) uses programs outside default PATH

Bug #1008892 reported by Kjetil Torgrim Homme
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Triaged
Low
Unassigned

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"

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in sysvinit (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
Changed in sysvinit (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.