From 7d42994bf30c9efc6a991c93da5e80c109f887f8 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 21 Feb 2025 09:30:52 +1000 Subject: [PATCH] Move pidfile from /tmp to /run Do not store the pid-file in /tmp as the tmp-cleaner might delete it for long running ublk targets. Move it to /run which is a better location for this. Signed-off-by: Ronnie Sahlberg --- lib/ublksrv_json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ublksrv_json.cpp b/lib/ublksrv_json.cpp index d5f0d1d0..657a0453 100644 --- a/lib/ublksrv_json.cpp +++ b/lib/ublksrv_json.cpp @@ -9,7 +9,7 @@ /* json device data is stored at this offset of pid file */ #define JSON_OFFSET 32 -#define UBLKSRV_PID_DIR "/tmp/ublksrvd" +#define UBLKSRV_PID_DIR "/run/ublksrvd" #define parse_json(j, jbuf) \ try { \