]> TLD Linux GIT Repositories - packages/zabbix.git/commitdiff
- fix pid file path
authorMarcin Krol <hawk@tld-linux.org>
Sun, 18 May 2025 19:28:02 +0000 (21:28 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 18 May 2025 19:28:02 +0000 (21:28 +0200)
zabbix_agent2.init

index 0802fb17c4943f3cbe385403e47081d0621c4814..0cc2796f5ac33acd6de9a3943ac9e0378d8d667e 100644 (file)
@@ -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"
 }