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
3621b0ac
Commit
3621b0ac
authored
Dec 13, 2018
by
Gebhardt, Albrecht
Browse files
add cronjob script
parent
f94102ce
Changes
1
Show whitespace changes
Inline
Side-by-side
check-frewe.sh
0 → 100755
View file @
3621b0ac
#!/bin/bash
PATH
=
$PATH
:/usr/local/bin:/usr/sbin:/sbin
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
&&
\
(
hub-ctrl
-h
0
-P
2
-p
0
;
sleep
5
;
hub-ctrl
-h
0
-P
2
-p
1
;
sleep
5
;
service frewe-client restart
)
service frewe-client status|grep
" active"
||
service frewe-client restart
service frewe-client status|grep
"exited"
&&
service frewe-client restart
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