service tells me to use Upstart
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 ]
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.