projects
/
weathermon.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4847477eec1e7f43ec4617626758c68b5ffc344b
[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