8
.. _starting_and_stopping_drizzled:
13
Although :program:`drizzled` can be started without any command line options
14
or config files, you will certainly want to specify a minimal configuration
15
to suite your particular system. You should be familiar with the
16
:ref:`drizzled_configuration` options and variables.
18
Managing the :program:`drizzled` process depends on whether Drizzle
19
was installed from a package or source. Package installations can use
20
the operating system's service managment programs, but source installations
21
require simple scripts to manage Drizzle manually.
26
Ubuntu uses the :program:`service` program to manage services. To start
27
and stop Drizzle from the command line:
31
$ sudo service drizzle start
32
drizzle start/running, process 1431
34
$ sudo service drizzle stop
37
:file:`/etc/init/drizzle.conf` controls how :program:`service` starts
43
If Drizzle was installed from source, or you want to manage
44
:program:`drizzled` manually, you should create a script
45
to start Drizzle from the command line. For example, if Drizzle was
46
installed to :file:`/usr/local/drizzle`, this script will start Drizzle
47
with a minimal configuration:
53
BASEDIR="/usr/local/drizzle"
59
--datadir=$BASEDIR/data \
60
--pid-file=/var/run/drizzled.pid \
61
> $BASEDIR/var/log/drizzled.log 2>&1 &
63
See :ref:`configuring_drizzle` for more information about setting additional
66
Use the :ref:`drizzle_command_line_client` to stop Drizzle:
72
Or, execute ``shtudown``:
78
The ``shutdown`` command is case-sensitive.
83
:program:`drizzled` does *not* close or redirect output to ``STDOUT`` or
84
``STDERR`` to a log file or logging facility like :program:`syslog`.
85
When starting Drizzle, you should redirect ``STDOUT`` and ``STDERR`` to a log
86
file or to /dev/null, as in the above script example when starting Drizzle.
88
When running :program:`drizzled` manually from a console, just allowing the
89
output to be printed for you can of course be useful.
91
Note that beginning with the first ``Drizzle 7.1 Beta 2011.10.28`` drizzled
92
will also log messages via syslog and this is *in addition* to using ``STDOUT``