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:
parent
cfd1612aa5
commit
728b105318
@ -54,11 +54,10 @@ fieldnames="Stratum (=System Time (seconds,x=Frequency (ppm,x=Residual Freq (ppm
|
|||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
if [ -n "$CHRONYC" ] && [ -x "$CHRONYC" ]; then
|
if [ -n "$CHRONYC" ] && [ -x "$CHRONYC" ]; then
|
||||||
echo yes
|
echo yes
|
||||||
exit 0
|
|
||||||
else
|
else
|
||||||
echo "no (no $CHRONYC)"
|
echo "no (missing 'chronyc' executable)"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user