[PATCH pve-manager 2/2] move /run/vzdump.lock to /run/lock/vzdump.lock
Jing Luo
jing at jing.rocks
Sat Mar 22 16:17:09 CET 2025
It's more appropriate under Debian, and vzdump.lock doesn't seem to
be used by any other package.
Signed-off-by: Jing Luo <jing at jing.rocks>
---
PVE/API2/Nodes.pm | 2 +-
PVE/VZDump.pm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 3708eb26..637479ea 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1978,7 +1978,7 @@ __PACKAGE__->register_method ({
}
eval { # remove backup locks, but avoid running into a scheduled backup job
- PVE::Tools::lock_file('/run/vzdump.lock', 10, $remove_locks_on_startup, $nodename);
+ PVE::Tools::lock_file('/run/lock/vzdump.lock', 10, $remove_locks_on_startup, $nodename);
};
warn $@ if $@;
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 5178ce9d..dce1bcc4 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -40,7 +40,7 @@ PVE::JSONSchema::register_standard_option('pve-backup-jobid', {
my @posix_filesystems = qw(ext3 ext4 nfs nfs4 reiserfs xfs);
-my $lockfile = '/run/vzdump.lock';
+my $lockfile = '/run/lock/vzdump.lock';
my $pidfile = '/run/vzdump.pid';
my $logdir = '/var/log/vzdump';
--
2.49.0
More information about the pve-devel
mailing list