added inetd and some other stuffs
authorPaul J R <me@pjr.cc>
Thu, 2 Jan 2014 17:56:19 +0000 (04:56 +1100)
committerPaul J R <me@pjr.cc>
Thu, 2 Jan 2014 17:56:19 +0000 (04:56 +1100)
src/buildroot-2013.05/custom/filesystem/etc/init.d/S01custom_pre_startup
src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence

index 55ed60d..32ffa16 100755 (executable)
@@ -125,4 +125,10 @@ then
 fi
 
 # lastly, work around for thttpd problems
-echo 'logfile=/dev/null' >> /var/www/thttpd_config
+mv /var/www/thttpd_config /var/www/thttpd_config.orig
+cat > /var/www/thttpd_config  << EOF
+dir=/var/www/data
+cgipat=**.cgi
+pidfile=/var/run/thttpd.pid
+logfile=/dev/null
+EOF
index cc1be80..2cede64 100755 (executable)
@@ -50,4 +50,6 @@ EOF
 
 fi
 
-
+# work around problems with thttpd startup and its stupid stats output (which spams syslog when the time jumps too much)
+killall -9 thttpd_wrapper
+killall -9 thttpd