--- Begin Message ---
"/var/lock" is deprecated.

Signed-off-by: Jing Luo <jing@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




--- End Message ---
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to