From 10e51ce2bd6352184d49fef8f12deb41dbcaf430 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 19 Jul 2018 13:57:03 -0400 Subject: [PATCH] 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 e37eae55b81207c5be5937764b78017550e4068a) --- systemd/lorax-composer.service | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/lorax-composer.service b/systemd/lorax-composer.service index 2c6a3428..ab381648 100644 --- a/systemd/lorax-composer.service +++ b/systemd/lorax-composer.service @@ -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/