projects
/
weathermon.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Обработка масштабирования в графиках.
[weathermon.git]
/
bin
/
weather-watchdog
1
#!/bin/sh
2
3
stamp=`date +%s -r $(uci get weathermon.process.dump_file)`
4
now=`date +%s`
5
delta=$(( $now - $stamp ))
6
if [[ $delta -ge 300 ]]; then
7
/etc/init.d/weathermon restart
8
fi
9
10
pgrep weather-display > /dev/null || /etc/init.d/weather-display restart