-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a threshold value so that average messages below the threshold…
… will cause a restart. Fix source issue for s6swrap
- Loading branch information
1 parent
0cd538e
commit 4c180d8
Showing
6 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!/command/with-contenv bash | ||
#shellcheck shell=bash | ||
|
||
set -o pipefail | ||
set -e | ||
source /scripts/common | ||
|
||
# Listens for the output of dumphfdl (UDP), and makes it available for multiple processes at TCP port 15555 | ||
# shellcheck disable=SC2016 | ||
"${s6wrap[@]}" socat -u udp-listen:5556,fork stdout | ncat -4 --keep-open --listen 0.0.0.0 15556 | ||
set -o pipefail | ||
set -e | ||
|
||
sleep 5 | ||
# Listens for the output of dumphfdl (UDP), and makes it available for multiple processes at TCP port 15555 | ||
# shellcheck disable=SC2016 | ||
"${s6wrap[@]}" socat -u udp-listen:5556,fork stdout | ncat -4 --keep-open --listen 0.0.0.0 15556 | ||
|
||
sleep 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
#!/command/with-contenv bash | ||
#shellcheck shell=bash | ||
|
||
#shellcheck disable=SC2154,SC1091 | ||
source /scripts/common | ||
|
||
|
||
"${s6wrap[@]}" echo "=============================================" | ||
"${s6wrap[@]}" echo "Resetting dumphfdl" | ||
"${s6wrap[@]}" echo "=============================================" | ||
s6-svc -r /run/service/dumphfdl || exit 1 | ||
rm -f /run/hfdl/hfdl.*.json || exit 1 |