Debian Codegraph @

Documents/README.Upstart

raw
1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 Using Upstart Service Management
3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
5 .. include:: prologue.rst
6
7 An Upstart job for BRLTTY can be found within the ``Autostart/Upstart/``
8 subdirectory of BRLTTY's source tree. It's called ``brltty.conf``. All you need
9 to do is to copy this file into Upstart's jobs directory.
10
11 Upstart's jobs directory has changed over time. Older Upstart releases use
12 ``/etc/event.d/`` whereas newer ones use ``/etc/init/``. You'll need to check
13 your system to see which of these directories it's using. Don't get confused by
14 the directory ``/etc/init.d/``, which your system probably also has, and which
15 has a similar name. It's used for something entirely different - SysV init
16 scripts.
17
18 The file also needs to have the correct name. Older Upstart releases just use
19 the job name itself, e.g. ``brltty``, whereas newer ones append the ``.conf``
20 extension, e.g. ``brltty.conf``.
21
22 So, to define BRLTTY's Upstart job, you'll need to do something like this:
23
24 * For an older Upstart release::
25
26 cp brltty.conf /etc/event.d/brltty
27
28 * For a newer Upstart release::
29
30 cp brltty.conf /etc/init/brltty.conf
31
32 Once the job file is in the right place, BRLTTY will automatically start when
33 the system is rebooted. You'll also be able to use standard Upstart commands to
34 manage the ``brltty`` job. The most common ones are::
35
36 status brltty
37 start brltty
38 stop brltty
39
40 For example: You don't need to reboot the system in order to start BRLTTY.
41 Just use Upstart's ``start`` command to start it right away.