[PATCH container 1/3] pct: unlock: log that operation happened to syslog

Fiona Ebner
2026-04-27T11:23:05Z

It can be helpful to see when a container was manually unlocked to
analyze certain issues when looking at the syslog.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/PVE/CLI/pct.pm | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm
index e2f3c90..9ae4ce4 100755
--- a/src/PVE/CLI/pct.pm
+++ b/src/PVE/CLI/pct.pm
@@ -112,6 +112,8 @@ __PACKAGE__->register_method({

PVE::LXC::Config->remove_lock($vmid);

+ syslog('info', "executed 'pct unlock $vmid'");
+
return undef;
},
});
--
2.47.3