Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Firmware-Developer
Firmware
Commits
5f018a70
Commit
5f018a70
authored
Apr 30, 2021
by
Stephan
Browse files
add bmxd timeout check
parent
f0abe06d
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/common/usr/lib/ddmesh/ddmesh-bmxd.sh
View file @
5f018a70
...
...
@@ -128,7 +128,8 @@ case "$ARG1" in
;;
check
)
# connection check; if bmxd hangs, kill it
timeout
-t
10
-s
9
$DAEMON
-c
--status
>
/dev/null
||
killall
-9
$DAEMON
# check for existance of "timeout" cmd, else bmxd will be killed every time
which
timeout
&&
timeout
-t
10
-s
9
$DAEMON
-c
--status
>
/dev/null
||
killall
-9
$DAEMON
test
-z
"
$(
pidof
$DAEMON
)
"
&&
logger
-s
"
$DAEMON
not running - restart"
&&
$0
restart
&&
exit
...
...
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