From 02ae2623a4a013c07142dbecaaf09d58fac8e1b6 Mon Sep 17 00:00:00 2001 From: Heitor Alves de Siqueira Date: Thu, 9 May 2019 09:44:28 -0300 Subject: [PATCH] ldirectord: Remove /var/lock from systemd unit The /var/lock/subsys/ directory is used in sysv init scripts, but are not necessary in systemd services. If /var/lock/subsys/ does not exist, the systemd service will fail to start due to the missing folder for the ExecStartPost command. Since these locks are not required in systemd services, we can safely remove them from the ldirectord unit file. --- ldirectord/systemd/ldirectord.service.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/ldirectord/systemd/ldirectord.service.in b/ldirectord/systemd/ldirectord.service.in index 191f62af2c..e6915b57dd 100644 --- a/ldirectord/systemd/ldirectord.service.in +++ b/ldirectord/systemd/ldirectord.service.in @@ -4,9 +4,7 @@ Documentation=man:ldirectord(8) [Service] ExecStart=@sbindir@/ldirectord start -ExecStartPost=/usr/bin/touch /var/lock/subsys/ldirectord ExecStop=@sbindir@/ldirectord stop -ExecStopPost=@RM@ -f /var/lock/subsys/ldirectord ExecReload=@sbindir@/ldirectord reload PIDFile=/var/run/ldirectord.ldirectord.pid Type=forking