|
Post by luos3m on Nov 8, 2009 5:10:01 GMT 7
Hello
I have been starting to use the 1.0.4 release of the webserver module that Thecus offers on their website, and found two errors in the startup script start_http.sh in the directory /raid/data/module/webserver/bin. Both errors together resulted in the webserver not reporting "started succesfully" after trying to start it, but staying in an infinite loop. With the changes proposed below, everything works perfectly. It should be noted that the error is a result of following the suggestion of the Thecus webserver usermanual to change the default user from ´nobody´ to anything else in httpd.conf
These are the errors:
1: The count loop from 0 to 30 with the variable wait_count does not work because at the 'sleep 1' command, there is no increment of the value wait_count. Solved by adding:
wait_count=$[$wait_count+1]
2) If you follow the suggestions to change the default user from nobody to another name in httpd.conf, the startup script searches for the wrong user ("nobody") after having started httpd. I changed it by adding a line in the beginning of the script:
check_user=`grep "^User " /raid/data/naswebsite/conf/httpd.conf | awk '{print $2}'`
and changing the reference to 'nobody' in the ret=`grep ...` statement a few lines later to $check_user
Obviously, you can only fix this if you have ssd´d yourself into the box
Lucien
|
|
bacci
New Member
Posts: 10
|
Post by bacci on Nov 17, 2009 19:30:37 GMT 7
Great input, thanks a lot!!
Could you post the whole script so I know exactly where to make the modifications?
|
|
|
Post by inouterer on Nov 18, 2009 2:28:41 GMT 7
Thanks!
|
|
|
Post by luos3m on Dec 18, 2009 4:45:25 GMT 7
Sorry, was away for a while enclosed the modified script Lucien Attachments:
|
|
|
Post by ther0225 on Apr 8, 2013 0:03:32 GMT 7
Thx. I know this is an old post but I have the same problems with my N5550 and webserver.
I will try this solution
|
|