macsat.com OpenWrt and ASUS WL Forum
January 09, 2009, 22:51:49 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: thttpd installed to /opt does not start at boot  (Read 2435 times)
0 Members and 1 Guest are viewing this topic.
sup
Newbie
*
Offline Offline

Posts: 8


View Profile
« on: September 25, 2005, 00:07:59 AM »

Hi, I followed your tutorials (great work, by the way) for openwrt, but I wanted to have thttpd webserver installed on my usb device, and I actually succeed and it is working, but only if I start it manually, the S80thttpd script does not work (placed both int /etc/init.d and /opt/etc/init.d) (S98optfiles runs as well)

log says this:
Code:
Sep 24 22:44:56 (none) user.info : /etc/init.d/S80thttpd: 2: thttpd: not found
Sep 24 22:44:56 (none) user.info : /etc/init.d/S99done: 3: cannot create /proc/sys/diag: Directory nonexistent
Sep 24 22:44:56 (none) user.info : : /opt/etc/init.d/S80thttpd: 2: thttpd: not found
Sep 24 22:44:56 (none) user.info : /opt/etc/init.d/S80thttpd: 2: thttpd: not found
I think that the problem is that these scripts are executed before usb is mounted as /opt and so the thttpd can be called. However, I am not able to write a script, that would overcome this (my knowledge of linux cripting is very limited:-))

Can anybody help (at least an idea how to write a cript, ergo, what commands to use?
Logged
sup
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #1 on: September 28, 2005, 21:21:39 PM »

I found what was wrong - I needed to specify the full path to thttpd file in the starting scripts (ergo /opt/usr/lib/thttpd -c ... and not thttpd -c ... - however, thttpd -c ... from command line works)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.131 seconds with 24 queries.