Merge pull request #128840 from NixOS/backport-126284-to-release-21.05

[Backport release-21.05] zabbixAgent: add bash to $PATH
This commit is contained in:
Aaron Andersen 2021-07-03 15:12:06 -04:00 committed by GitHub
commit 806c01c9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -157,7 +157,10 @@ in
wantedBy = [ "multi-user.target" ];
path = [ "/run/wrappers" ] ++ cfg.extraPackages;
# https://www.zabbix.com/documentation/current/manual/config/items/userparameters
# > User parameters are commands executed by Zabbix agent.
# > /bin/sh is used as a command line interpreter under UNIX operating systems.
path = with pkgs; [ bash "/run/wrappers" ] ++ cfg.extraPackages;
serviceConfig = {
ExecStart = "@${cfg.package}/sbin/zabbix_agentd zabbix_agentd -f --config ${configFile}";