Upstart scripts can't be started/stopped manually following upgrade to 12.04 from 10.04
Bug #998576 reported by
Jean-Yves Avenard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Expired
|
Undecided
|
Unassigned |
Bug Description
Starting / stopping a script is done as follow:
$ sudo service mythtv-backend stop
or
$ sudo service mythtv-backend start
following an upgrade from 10.04 to 12.04, this always return the error:
/usr/bin/service: 123: exec: stop: not found
$ ls -l /sbin/stop
lrwxrwxrwx 1 root root 7 Apr 27 01:26 /sbin/stop -> initctl
$ sudo /etc/init.
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mythtv-backend stop
/etc/init.
it is possible to do it manually with:
$ /sbin/stop mythtv-backend
To post a comment you must log in.
it seems that the service script assumes that /usr/sbin is in the PATH ; when /usr/sbin isn't ; it will fail.