Merge pull request #396 from clumens/locking
A couple patches about running lorax-composer twice.
This commit is contained in:
commit
b7e4524ac0
@ -43,8 +43,13 @@ Quickstart
|
|||||||
2. Remove any pre-existing socket directory with ``rm -rf /run/weldr/``
|
2. Remove any pre-existing socket directory with ``rm -rf /run/weldr/``
|
||||||
A new directory with correct permissions will be created the first time the server runs.
|
A new directory with correct permissions will be created the first time the server runs.
|
||||||
3. Enable the socket activation with ``systemctl enable lorax-composer.socket
|
3. Enable the socket activation with ``systemctl enable lorax-composer.socket
|
||||||
&& sudo systemctl start lorax-composer.socket`` or run it directly with
|
&& sudo systemctl start lorax-composer.socket``.
|
||||||
``lorax-composer /path/to/blueprints/``
|
|
||||||
|
NOTE: You can also run it directly with ``lorax-composer /path/to/blueprints``. However,
|
||||||
|
``lorax-composer`` does not react well to being started both on the command line and via
|
||||||
|
socket activation at the same time. It is therefore recommended that you run it directly
|
||||||
|
on the command line only for testing or development purposes. For real use or development
|
||||||
|
of other projects that simply use the API, you should stick to socket activation only.
|
||||||
|
|
||||||
The ``/path/to/blueprints/`` directory is where the blueprints' git repo will
|
The ``/path/to/blueprints/`` directory is where the blueprints' git repo will
|
||||||
be created, and all the blueprints created with the ``/api/v0/blueprints/new``
|
be created, and all the blueprints created with the ``/api/v0/blueprints/new``
|
||||||
|
@ -6,6 +6,7 @@ Wants=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
Type=simple
|
Type=simple
|
||||||
|
PIDFile=/run/lorax-composer.pid
|
||||||
ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/lorax-composer.conf
|
ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/lorax-composer.conf
|
||||||
ExecStart=/usr/sbin/lorax-composer /var/lib/lorax/composer/blueprints/
|
ExecStart=/usr/sbin/lorax-composer /var/lib/lorax/composer/blueprints/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user