From: Marcin Krol Date: Sun, 18 May 2025 19:28:02 +0000 (+0200) Subject: - fix pid file path X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=0be4d6168946475be9e621645e10fb6cb7a2b78a;p=packages%2Fzabbix.git - fix pid file path --- 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" }