Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gebhardt, Albrecht
frewe-rpi
Commits
fc498e59
Commit
fc498e59
authored
Dec 17, 2018
by
Gebhardt, Albrecht
Browse files
more restart conditions
parent
c7ddc791
Changes
1
Hide whitespace changes
Inline
Side-by-side
check-frewe.sh
View file @
fc498e59
...
...
@@ -2,9 +2,10 @@
# use in crontab:
# */15 * * * * /usr/local/bin/check-frewe.sh
PATH
=
$PATH
:/usr/local/bin:/usr/sbin:/sbin
frewe-client 2>&1
||
\
(
hub-ctrl
-h
0
-P
2
-p
0
;
sleep
5
;
hub-ctrl
-h
0
-P
2
-p
1
;
sleep
5
;
service frewe-client restart
)
frewe-client 2>&1 |grep
"Sensor contact lost"
-q
&&
\
(
hub-ctrl
-h
0
-P
2
-p
0
;
sleep
5
;
hub-ctrl
-h
0
-P
2
-p
1
;
sleep
5
;
service frewe-client restart
)
frewe-client 2>&1 |grep
"out of range"
-q
&&
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment