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.
This commit is contained in:
parent
8080abda67
commit
e37eae55b8
@ -6,6 +6,7 @@ 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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user