raiderG
12-01-2011, 22:43
Hi,
I use successfully xinetd on my oleg firmware with ftp (vsftp server)
I also am able to use thttpd web server by starting/stopping it manually from a script.
I was trying for thttpd to work with xinetd so that it doesn't stay started when service is not requested (very low traffic)
Here is what I get with this xinetd configuration:
# control thttpd web server
service http
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
user = admin
server = /opt/etc/init.d/_S80thttpd
server_args = start
wait = no
nice = 10
only_from = 0.0.0.0/0
port = 81
}
/opt/etc/init.d/_S80thttpd is my startup script for thttpd that works if I lunch it manually (if you think I should include the content let me know pls)
The errors in syslog are:
Jan 13 00:32:37 xinetd[9473]: xinetd Version 2.3.14 started with no options compiled in.
Jan 13 00:32:37 xinetd[9473]: Started working: 2 available services
Jan 13 00:32:42 xinetd[9473]: START: http pid=9475 from=192.168.1.18
Jan 13 00:32:43 thttpd[9480]: bind :: - Address already in use
Jan 13 00:32:43 thttpd[9480]: bind 0.0.0.0 - Address already in use
My httpd configuration is this (again, thttpd works with this):
dir=/opt/share/www
port=81
user=nobody
nochroot
nosymlink
novhost
logfile=/opt/var/log/thttpd.log
# Please do not edit pidfile path at it is use to kill thttpd process during init
pidfile=/opt/var/run/thttpd.pid
Any clues ?
I use successfully xinetd on my oleg firmware with ftp (vsftp server)
I also am able to use thttpd web server by starting/stopping it manually from a script.
I was trying for thttpd to work with xinetd so that it doesn't stay started when service is not requested (very low traffic)
Here is what I get with this xinetd configuration:
# control thttpd web server
service http
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
user = admin
server = /opt/etc/init.d/_S80thttpd
server_args = start
wait = no
nice = 10
only_from = 0.0.0.0/0
port = 81
}
/opt/etc/init.d/_S80thttpd is my startup script for thttpd that works if I lunch it manually (if you think I should include the content let me know pls)
The errors in syslog are:
Jan 13 00:32:37 xinetd[9473]: xinetd Version 2.3.14 started with no options compiled in.
Jan 13 00:32:37 xinetd[9473]: Started working: 2 available services
Jan 13 00:32:42 xinetd[9473]: START: http pid=9475 from=192.168.1.18
Jan 13 00:32:43 thttpd[9480]: bind :: - Address already in use
Jan 13 00:32:43 thttpd[9480]: bind 0.0.0.0 - Address already in use
My httpd configuration is this (again, thttpd works with this):
dir=/opt/share/www
port=81
user=nobody
nochroot
nosymlink
novhost
logfile=/opt/var/log/thttpd.log
# Please do not edit pidfile path at it is use to kill thttpd process during init
pidfile=/opt/var/run/thttpd.pid
Any clues ?