Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xinetd disable stderr redirection

I just setup xinetd for one of my binary to run as a service. However it appears to me that both stdout and stderr is redirected into the socket stream.

Is there anyway to disable the stderr ? I try in the server field of xinetd setting: server = binary 2>/dev/null but it doesn't work

Thanks

like image 933
w00d Avatar asked Sep 04 '12 07:09

w00d


1 Answers

I made a work-around by putting it in a bash wrapper which redirect the stderr to null, then put the script in the xinetd configuration.

like image 106
w00d Avatar answered Sep 24 '22 09:09

w00d