[PATCH] rust-proxmox-network-api: change /var/lock to /run/lock
Jing Luo
jing at jing.rocks
Sat Mar 22 16:17:10 CET 2025
"/var/lock" is deprecated.
Signed-off-by: Jing Luo <jing at jing.rocks>
---
proxmox-network-api/src/config/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-network-api/src/config/mod.rs b/proxmox-network-api/src/config/mod.rs
index 054f53c8..5e361e55 100644
--- a/proxmox-network-api/src/config/mod.rs
+++ b/proxmox-network-api/src/config/mod.rs
@@ -487,7 +487,7 @@ impl NetworkConfig {
pub const NETWORK_INTERFACES_FILENAME: &str = "/etc/network/interfaces";
pub const NETWORK_INTERFACES_NEW_FILENAME: &str = "/etc/network/interfaces.new";
-pub const NETWORK_LOCKFILE: &str = "/var/lock/pve-network.lck";
+pub const NETWORK_LOCKFILE: &str = "/run/lock/pve-network.lck";
pub fn lock_config() -> Result<ApiLockGuard, Error> {
open_api_lockfile(NETWORK_LOCKFILE, None, true)
--
2.49.0
More information about the pve-devel
mailing list