Upstart

Dustin Kirkland kirkland at ubuntu.com
Mon Mar 8 02:57:34 UTC 2010


On Sun, Mar 7, 2010 at 2:21 PM, Tom H <tomh0665 at gmail.com> wrote:
> Patrick's two Upstart posts reminded me of 2.5 queries of my own.
>
> 1. Why does /lib/init/upstart-job direct us to use service rather than initctl?

Because /usr/sbin/service can handle the start/stop/restart/status
actions of both traditional System V init scripts in /etc/init.d as
well as Upstart scripts in /etc/init.

It's intended to be one-stop-shopping for managing services in either
/etc/init.d or /etc/init.

> 999. Could initctl be made to recognize, for example, both
> avahi-daemon and avahi-daemon.conf? (If I am in /etc/init - it is rare
> but it happens - and type "stop av//tab//", I end up with "stop
> avahi-daemon.conf" which, after pressing //enter// results in an
> "unknown job" message.)

As answered above, that's service(8)'s job ;-)

:-Dustin




More information about the Ubuntu-devel-discuss mailing list