Executing script on receiving incoming connection with xinetd
I want xinetd to execute a shell script when a connection is received on a certain port. To accomplish this, followed this tutorial: [enter link description here][1] Unfortunately, the whole thing doesn't work as I hoped that's why I am going to show you my configuration. The script that is called by xinetd is located at /usr/local/bin. It can be executed without any problems: #!/bin/bash echo "connection received" /etc/xinetd.d/testservice has this content: service testservice { disable = no socket_type = stream protocol = tcp port = 5900 log_on_success += USERID log_on_failure += USERID