projects
/
weathermon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Weather panel backend call.
[weathermon.git]
/
bin
/
weather-watchdog
diff --git
a/bin/weather-watchdog
b/bin/weather-watchdog
index 4847477eec1e7f43ec4617626758c68b5ffc344b..48c4bff38ad5eface86b41aca999248811ec8edb 100644
(file)
--- a/
bin/weather-watchdog
+++ b/
bin/weather-watchdog
@@
-4,7
+4,8
@@
stamp=`date +%s -r $(uci get weathermon.process.dump_file)`
now=`date +%s`
delta=$(( $now - $stamp ))
if [[ $delta -ge 300 ]]; then
now=`date +%s`
delta=$(( $now - $stamp ))
if [[ $delta -ge 300 ]]; then
+ logger weathermon restarting...
/etc/init.d/weathermon restart
fi
/etc/init.d/weathermon restart
fi
-pgrep weather-
display > /dev/null || /etc/init.d/weather-display
restart
+pgrep weather-
lcd > /dev/null || /etc/init.d/lcd-weather
restart