2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

[chrony] fix error status and message for 'autoconf'

This commit is contained in:
Lars Kruse 2016-11-10 23:51:56 +01:00
parent cfd1612aa5
commit 728b105318

View File

@ -54,11 +54,10 @@ fieldnames="Stratum (=System Time (seconds,x=Frequency (ppm,x=Residual Freq (ppm
if [ "$1" = "autoconf" ]; then
if [ -n "$CHRONYC" ] && [ -x "$CHRONYC" ]; then
echo yes
exit 0
else
echo "no (no $CHRONYC)"
exit 1
echo "no (missing 'chronyc' executable)"
fi
exit 0
fi
if [ "$1" = "config" ]; then