vncmqtt/health.sh

13 lines
162 B
Bash
Executable File

#!/bin/sh
DT=$(date +%s)
CT=$(stat -c %Z capture.time)
if [ $(( DT - CT )) -gt $(( 5 * INTERVAL )) ];then
echo bad
false
else
echo good
true
fi