service(8) uses programs outside default PATH

Bug #1008892 reported by Kjetil Torgrim Homme on 2012-06-05
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
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"

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers