service tells me to use Upstart

Bug #529773 reported by Drew Stephens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NULL Project
Invalid
Undecided
Unassigned
sysvinit (Ubuntu)
New
Undecided
Unassigned

Bug Description

On a fresh Ubuntu 9.10 install, issuing the command `sudo service gdm stop` informs me that I should use the `service` command, rather than invoking init scripts. This is confusing.

    Titus:~$ service --status-all 2>&1|grep gdm
     [ ? ] gdm
    Titus:~$ sudo service gdm start
    Rather than invoking init scripts through /etc/init.d, use the service(8)
    utility, e.g. service gdm 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 gdm
    start: Unknown job: gdm
    Titus:~$ sudo service gdm stop
    Rather than invoking init scripts through /etc/init.d, use the service(8)
    utility, e.g. service gdm stop

    Since the script you are attempting to invoke has been converted to an
    Upstart job, you may also use the stop(8) utility, e.g. stop gdm
    Titus:~$ sudo start gdm
    start: Unknown job: gdm

Other things work as expected:

    Titus:~$ sudo /etc/init.d/ssh restart
     * Restarting OpenBSD Secure Shell server sshd [ OK ]
    Titus:~$ sudo service ssh restart
     * Restarting OpenBSD Secure Shell server sshd [ OK ]

Tags: init sysv upstart
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This bug has been filed against the upstream Upstart bug tracker, but it appears that the bug is with the "service" command shipped in Ubuntu's sysvinit package. I've moved the bug over there for you.

affects: upstart → null
Changed in null:
status: New → Invalid
summary: - Upstart tells me to use Upstart
+ service tells me to use Upstart
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.