More compact debug output.

RRDC_USER is not used in the systemd unit file (this isn't how you set an environment variable), so remove it.
This commit is contained in:
Tony Murray
2016-07-25 20:12:40 -05:00
parent e3772e2653
commit 8d950a4ed7
2 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,6 @@ After=network.service
Type=forking Type=forking
PIDFile=/run/rrdcached.pid PIDFile=/run/rrdcached.pid
ExecStart=/usr/bin/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/tmp -l unix:/var/run/rrdcached/rrdcached.sock -t 4 -F -b /opt/librenms/rrd/ ExecStart=/usr/bin/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/tmp -l unix:/var/run/rrdcached/rrdcached.sock -t 4 -F -b /opt/librenms/rrd/
RRDC_USER=librenms
[Install] [Install]
WantedBy=default.target WantedBy=default.target

View File

@@ -189,8 +189,9 @@ function rrdtool($command, $filename, $options, $timeout=1)
if ($debug) { if ($debug) {
print $console_color->convert('RRD[%g'.$cmd."%n] \n"); print $console_color->convert('RRD[%g'.$cmd."%n] \n");
echo 'rrdtool output: '; echo 'RRDtool Output: ';
var_dump($output); echo $output[0];
echo $output[1];
} }
return $output; return $output;