Hi,

>   We had this issue for discussion earlier on. At 'hydra.nixos.org'
>   you use non-standard paths for at least 'netstat'. Thus the script
>   launches 'inetd' as requested, but fails to detect that success.
>
>   The two test printouts, close to bottom,
>
>       netstat -na
>       grep '^udp .*7777 '
>       test 1 -ne 0
>
>   are evidence of this. From my point of view the script works for
>   all sensible UNIX systems, except at NixOS. The discussion we had
>   earlier was rather animated, but we never got the feedback we need
>   in order to fix the issue at hand.
>
> But if that was the case, netstat wouldn't be found and there would be
> an error message in the log.  Here, it looks as if netstat did
> execute, but failed to catch 7777 UDP open.  We aren't matching on the
> file name of inetd, and assuming that netstat is in PATH.
>

Thank you all from the quick response. I had some time to debug this a bit
more.

The non-standard location in NixOS was indeed not an issue here, netstat was
in PATH.
inetd failed to start due to three reasons:
 - environment variable USER is not set in the standard nix builders
 - inetd needs /etc/protocols be available, and as we are building all
packages in a chroot this wasn't available
 - ifconfig was not in PATH as it is in <nettools>/sbin

The tests now run successfully. Thanks for the help!

greetings,
Rob
-- 
Rob Vermaas

[email] rob.verm...@gmail.com

Reply via email to