PDA

View Full Version : xinetd format


fire-fly
2005-03-07, 10:30 AM CST
Hi there
In most unix system to a progress listen to a socket we use inetd. In linux how can i do it ?
e.g to start process in inetd

8900 stream tcp nowait root /usr/local/bin/proxy proxy -a -u noend

Thank in advance

RedFedora
2005-03-07, 10:44 AM CST
Each service has a file with data about that service. These files are stored in the directory
/etc/xinetd.d

A file for a service may look something like this:
service myservice
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/bin/myserver
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

I'm sure you can find other examples in the /etc/xinetd.d
directory.

fire-fly
2005-03-07, 11:44 AM CST
how do i pass the argument -a -u noend ?