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
455b35d6
Commit
455b35d6
authored
Apr 30, 2021
by
Stephan
Browse files
add bmxd timeout check
parent
af41b8dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/common/usr/lib/ddmesh/ddmesh-bmxd.sh
View file @
455b35d6
...
...
@@ -128,7 +128,7 @@ case "$ARG1" in
;;
check
)
# connection check; if bmxd hangs, kill it
timeout
-t
10
-s
9
$DAEMON
-ci
||
killall
-9
$DAEMON
timeout
-t
10
-s
9
$DAEMON
-ci
>
/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