nixos/zabbixServer: move pid file from default (/tmp) to /run/zabbix to avoid issues with PrivateTmp=true
This commit is contained in:
parent
60f3c94965
commit
32a38d50bb
@ -30,6 +30,7 @@ let
|
|||||||
DBUser = ${cfg.database.user}
|
DBUser = ${cfg.database.user}
|
||||||
${optionalString (cfg.database.passwordFile != null) "Include ${passwordFile}"}
|
${optionalString (cfg.database.passwordFile != null) "Include ${passwordFile}"}
|
||||||
${optionalString (mysqlLocal && cfg.database.socket != null) "DBSocket = ${cfg.database.socket}"}
|
${optionalString (mysqlLocal && cfg.database.socket != null) "DBSocket = ${cfg.database.socket}"}
|
||||||
|
PidFile = ${runtimeDir}/zabbix_server.pid
|
||||||
SocketDir = ${runtimeDir}
|
SocketDir = ${runtimeDir}
|
||||||
FpingLocation = /run/wrappers/bin/fping
|
FpingLocation = /run/wrappers/bin/fping
|
||||||
${optionalString (cfg.modules != {}) "LoadModulePath = ${moduleEnv}/lib"}
|
${optionalString (cfg.modules != {}) "LoadModulePath = ${moduleEnv}/lib"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user