From 0be4d6168946475be9e621645e10fb6cb7a2b78a Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 18 May 2025 21:28:02 +0200 Subject: [PATCH] - fix pid file path --- zabbix_agent2.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_agent2.init b/zabbix_agent2.init index 0802fb1..0cc2796 100644 --- a/zabbix_agent2.init +++ b/zabbix_agent2.init @@ -35,7 +35,7 @@ get_pid() { local pidfile test -f "$config" && pidfile=$(awk -F= '/^ *PidFile/ {print $2}' "$config") # Fallback to zabbix_agent2 default pidfile - test -n "$pidfile" || pidfile=/tmp/zabbix_agent2.pid + test -n "$pidfile" || pidfile=/var/run/zabbix/zabbix_agent2.pid echo "$pidfile" } -- 2.49.0