/usr/sbin/invoke-rc.d calls /sbin/runlevel without DEPENDSing upstart

Bug #224477 reported by sparr
10
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

upstart's /usr/sbin/invoke-rc.d script makes a call to /sbin/runlevel (on line 274). if neither sysvinit nor upstart-compat-sysv are installed then /sbin/runlevel won't exist, and it complains. one of those packages, or one of their PROVIDES, should be a DEPENDS of upstart.

Tags: patch
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: /usr/sbin/invoke-rc.d calls /sbin/runlevel without DEPENDSing sysvinit or upstart-compat-sysv

invoke-rc.d is part of sysv-rc, however the lack of a dependency is still true

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Is this still an issue for you? What Ubuntu version do you use? Thank you for telling us!

Changed in sysvinit (Ubuntu):
status: New → Incomplete
Revision history for this message
Mark A. Hershberger (hexmode) wrote :

invoke-rc.d is in sysv-rc and sysv-rc DEPENDs on sysvinit-utils which RECOMMENDs upstart, the location of /sbin/runlevel.

This bug wouldn't affect many people except those who are pedantic enough to try to run a minimal system by manually rejecting the installation of any RECOMMENDed packages.

Still, even those pedants (like me) shouldn't have to deal with this.

Changed in sysvinit (Ubuntu):
status: Incomplete → Confirmed
summary: - /usr/sbin/invoke-rc.d calls /sbin/runlevel without DEPENDSing sysvinit
- or upstart-compat-sysv
+ /usr/sbin/invoke-rc.d calls /sbin/runlevel without DEPENDSing upstart
Revision history for this message
sparr (sparr0) wrote :

Thank you Mark. This should, perhaps, be moved to a bug on one of the sysv packages. My original assignment to the upstart package was likely mistaken.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :
Revision history for this message
Mark A. Hershberger (hexmode) wrote :

Patch as attachment.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "tmp.diff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
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.