"service start" complains about using the init script and recommends using "service"

Bug #427277 reported by Martin Pitt
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Fix Released
Low
Dustin Kirkland 

Bug Description

Binary package hint: sysvinit

I'm using Scott's upstartification PPA (http://ppa.launchpad.net/ubuntu-boot/ppa/ubuntu) with sysvinit 2.87dsf-4ubuntu2~boot5.

$ sudo service hal start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service hal start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start hal
start: Job is already running: hal

So it complains that I should do exactly what I already did. :-)

Tags: ubuntu-boot

Related branches

Martin Pitt (pitti)
Changed in sysvinit (Ubuntu):
importance: Undecided → Low
Anders Kaseorg (andersk)
Changed in sysvinit (Ubuntu):
status: New → Confirmed
Revision history for this message
Matt Zimmerman (mdz) wrote :

I'm seeing this in Karmic proper now:

atomicity:[~] sudo /etc/init.d/anacron start
[sudo] password for mdz:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service anacron start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start anacron
anacron stop/waiting
atomicity:[~] sudo service anacron start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service anacron start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start anacron
anacron stop/waiting
atomicity:[~] sudo start anacron
anacron stop/waiting

Changed in sysvinit (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Dustin: since you wrote "service", I don't suppose you could add some logic to do something different if it gets passed an Upstart job? :-)

tags: added: ubuntu-boot
Changed in sysvinit (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I propose the attached patch. Seems to be working well on my end.

I'll wait until Alpha6 releases and then upload, unless I get feedback to the contrary in the mean time.

:-Dustin

Changed in sysvinit (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sysvinit - 2.87dsf-4ubuntu4

---------------
sysvinit (2.87dsf-4ubuntu4) karmic; urgency=low

  * debian/service/service: use upstart for service management, if an
    upstart configuration exists, LP: #427277

 -- Dustin Kirkland <email address hidden> Thu, 17 Sep 2009 10:21:05 -0500

Changed in sysvinit (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Patches

Remote bug watches

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