forked from mirrors/nixpkgs
* Zabbix: use the path attribute.
svn path=/nixos/trunk/; revision=33278
This commit is contained in:
parent
a51a83bd8c
commit
6093b54b73
|
@ -81,6 +81,8 @@ in
|
||||||
startOn = "ip-up";
|
startOn = "ip-up";
|
||||||
stopOn = "stopping network-interfaces";
|
stopOn = "stopping network-interfaces";
|
||||||
|
|
||||||
|
path = [ pkgs.zabbix.agent ];
|
||||||
|
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
mkdir -m 0755 -p ${stateDir} ${logDir}
|
mkdir -m 0755 -p ${stateDir} ${logDir}
|
||||||
|
@ -100,7 +102,7 @@ in
|
||||||
mkfifo ${stateDir}/dummy2
|
mkfifo ${stateDir}/dummy2
|
||||||
cat ${stateDir}/dummy2 &
|
cat ${stateDir}/dummy2 &
|
||||||
pid=$!
|
pid=$!
|
||||||
${pkgs.zabbix.agent}/sbin/zabbix_agentd --config ${configFile} 100>${stateDir}/dummy2
|
zabbix_agentd --config ${configFile} 100>${stateDir}/dummy2
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ in
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
path = [ pkgs.nettools ];
|
path = [ pkgs.nettools pkgs.zabbix.server ];
|
||||||
|
|
||||||
# Zabbix doesn't have an option not to daemonize, and doesn't
|
# Zabbix doesn't have an option not to daemonize, and doesn't
|
||||||
# daemonize in a way that allows Upstart to track it. So to
|
# daemonize in a way that allows Upstart to track it. So to
|
||||||
|
@ -109,7 +109,7 @@ in
|
||||||
mkfifo ${stateDir}/dummy
|
mkfifo ${stateDir}/dummy
|
||||||
cat ${stateDir}/dummy &
|
cat ${stateDir}/dummy &
|
||||||
pid=$!
|
pid=$!
|
||||||
${pkgs.zabbix.server}/sbin/zabbix_server --config ${configFile} 100>${stateDir}/dummy
|
zabbix_server --config ${configFile} 100>${stateDir}/dummy
|
||||||
wait "$pid"
|
wait "$pid"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue