From 3b20f5daa7341ca47706477938a02cc2350636cc Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Thu, 12 Mar 2026 15:59:47 -0700 Subject: [PATCH] [chefctl] Move default lockfile location `/var/lock/subsys` was meant for SysV startup serialization, and was never the right locationf or our lockfile. Moreover, recent systemd releases no longer keep the `legacy.conf` configuration that creates `/var/lock/subsys`, so this means chefctl no longer works out of the box. Move the default to something more modern and sane. *NOTE*: If Meta doesn't explicitly set a `lock_file` setting in their `chefctl-config.rb`, they should before merging this. Signed-off-by: Phil Dibowitz --- chefctl/src/chefctl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chefctl/src/chefctl.rb b/chefctl/src/chefctl.rb index 6cdbf49..7ae19ed 100755 --- a/chefctl/src/chefctl.rb +++ b/chefctl/src/chefctl.rb @@ -150,7 +150,7 @@ module Config immediate false # The lock file to use for chefctl. - lock_file '/var/lock/subsys/chefctl' + lock_file '/var/lock/chefctl.lock' # How long to wait for the lock to become available. lock_time 1800