The second way to start up a Glance server is to use the
glance-control program.
glance-control is a wrapper script that
allows the user to start, stop, restart, and reload the other
Glance server programs in a fashion that is more conducive to
automation and scripting.
Servers started via the glance-control
program are always `daemonized`, meaning that the server program
process runs in the background.
To start a Glance server with glance-control,
simply call glance-control with a server and
the word "start", followed by any command-line options
you wish to provide. Start the server with
glance-control in the following way:
$> sudo glance-control <SERVER> start [CONFPATH]
..note:
You must use the ``sudo`` program to run ``glance-control`` currently, as the pid files for the server programs are written to /var/run/glance/
Here is an example that shows how to start the
glance-registry server with the
glance-control wrapper script.
::
$ sudo glance-control api start glance-api.conf Starting glance-api with /home/jsuh/glance.conf
$ sudo glance-control registry start glance-registry.conf Starting glance-registry with /home/jsuh/glance.conf
$ ps aux | grep glance root 20038 4.0 0.1 12728 9116 ? Ss 12:51 0:00 /usr/bin/python /usr/bin/glance-api /home/jsuh/glance-api.conf root 20039 6.0 0.1 25188 13356 ? Ss 12:51 0:00 /usr/bin/python /usr/bin/glance-registry /home/jsuh/glance-registry.conf jsuh 20042 0.0 0.0 3368 744 pts/1 S+ 12:51 0:00 grep glance
The same paste.deploy configuration files are
used by glance-control to start the Glance
server programs, and you can specify (as the example above
shows) a configuration file when starting the server.
