lorax/systemd/lorax-composer.service
Chris Lumens 10e51ce2bd Add PIDFile to the .service file.
This will cause systemd to delete the lock file when the service
terminates.  This does not do anything if lorax-composer is started on
the command line, however.

(cherry picked from commit e37eae55b8)
2018-07-20 16:14:23 -07:00

15 lines
369 B
Desktop File

[Unit]
Description=Lorax Image Composer API Server
After=network-online.target
Wants=network-online.target
[Service]
User=root
Type=simple
PIDFile=/run/lorax-composer.pid
ExecStartPre=/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/lorax-composer.conf
ExecStart=/usr/sbin/lorax-composer /var/lib/lorax/composer/blueprints/
[Install]
WantedBy=multi-user.target