3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #1135 from offlinehacker/nixos/graphite/fix

Fix graphite startup and limit amount of log messages
This commit is contained in:
Domen Kožar 2013-10-28 07:22:54 -07:00
commit 04fc38d233

View file

@ -8,7 +8,7 @@ let
dataDir = "/var/db/graphite"; dataDir = "/var/db/graphite";
carbonOpts = name: with config.ids; '' carbonOpts = name: with config.ids; ''
--nodaemon --syslog --prefix=${name} \ --nodaemon --syslog --prefix=${name} --pidfile /var/run/${name}.pid \
--uid ${toString uids.graphite} --gid ${toString uids.graphite} ${name} --uid ${toString uids.graphite} --gid ${toString uids.graphite} ${name}
''; '';
carbonEnv = { carbonEnv = {
@ -52,6 +52,9 @@ in {
PICKLE_RECEIVER_INTERFACE = 127.0.0.1 PICKLE_RECEIVER_INTERFACE = 127.0.0.1
LINE_RECEIVER_INTERFACE = 127.0.0.1 LINE_RECEIVER_INTERFACE = 127.0.0.1
CACHE_QUERY_INTERFACE = 127.0.0.1 CACHE_QUERY_INTERFACE = 127.0.0.1
# Do not log every update
LOG_UPDATES = False
LOG_CACHE_HITS = False
''; '';
type = types.uniq types.string; type = types.uniq types.string;
}; };