fix(package): sentinèlla: probe — use socat EXEC pipes to avoid pty CR/LF mangling
This commit is contained in:
@@ -16,8 +16,10 @@ let
|
|||||||
probe = hectic.writeShellApplication {
|
probe = hectic.writeShellApplication {
|
||||||
inherit shell bashOptions;
|
inherit shell bashOptions;
|
||||||
name = "probe";
|
name = "probe";
|
||||||
runtimeInputs = [ socat dash router ];
|
runtimeInputs = [ socat ];
|
||||||
text = builtins.readFile ./probe.sh;
|
text = ''
|
||||||
|
socat -T5 -t5 TCP-LISTEN:"''${PORT:-5988}",reuseaddr,fork EXEC:"${router}/bin/router",pipes
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
router = hectic.writeShellApplication {
|
router = hectic.writeShellApplication {
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
#!/bin/dash
|
#!/bin/dash
|
||||||
|
|
||||||
socat -V >/dev/null
|
|
||||||
dash -c 'echo ok' >/dev/null
|
|
||||||
|
|
||||||
socat -T5 -t5 TCP-LISTEN:"${PORT:-5988}",reuseaddr,fork EXEC:"router"
|
socat -T5 -t5 TCP-LISTEN:"${PORT:-5988}",reuseaddr,fork EXEC:"router"
|
||||||
|
|||||||
Reference in New Issue
Block a user