diff --git a/package/sentinèlla/default.nix b/package/sentinèlla/default.nix index 8f23bd0..184cddd 100644 --- a/package/sentinèlla/default.nix +++ b/package/sentinèlla/default.nix @@ -16,8 +16,10 @@ let probe = hectic.writeShellApplication { inherit shell bashOptions; name = "probe"; - runtimeInputs = [ socat dash router ]; - text = builtins.readFile ./probe.sh; + runtimeInputs = [ socat ]; + text = '' + socat -T5 -t5 TCP-LISTEN:"''${PORT:-5988}",reuseaddr,fork EXEC:"${router}/bin/router",pipes + ''; }; router = hectic.writeShellApplication { diff --git a/package/sentinèlla/probe.sh b/package/sentinèlla/probe.sh index 32d0294..d81ff17 100644 --- a/package/sentinèlla/probe.sh +++ b/package/sentinèlla/probe.sh @@ -1,6 +1,3 @@ #!/bin/dash -socat -V >/dev/null -dash -c 'echo ok' >/dev/null - socat -T5 -t5 TCP-LISTEN:"${PORT:-5988}",reuseaddr,fork EXEC:"router"