|
Re: Problem starting appWeb (new findings): msg#00298misc.nslu2.linux
If I am reading the echo statements correctly, you are writing your log file to the flash file system (jffs). This is probably a poor idea since it is hard on the flash and also, it brings a random timing overhead with it. I have a similar setup running (apache and appWeb on different ports) and they are starting fine. The difference is that I am not writing log files to / and I am not changing the random device. For troubleshooting, perhaps the random changes should be located in another script. Then you can run it before or after depending upon the name. S --- In nslu2-linux-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx, CORNELIU DOBAN <corneliu_doban@xxxx> wrote: > I have a similar problem with my startup script wich starts apache 1.3 ... > > > wettingus <walter_hollenstein@xxxx> wrote: > > > after several reboots it looks like this issue is a timing problem. > > when adding a 'sleep 10' to the startup skript appweb starts up as > expected. > Strange: when I redirect the log file to the root > directory "/error.log" the sleep > command is not necessary.... > > > Walter > > > > > --- In nslu2- linux-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx, "wettingus" > <walter_hollenstein@xxxx> wrote: > > > > no, the process is not running, no log file, nothing. > > > > Walter > > > > --- In nslu2-linux-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx, CORNELIU DOBAN > > <corneliu_doban@xxxx> wrote: > > > I'ts normal to die when you log off if it was started by that > shell. > > > In the next version 1.3.3 they added a flag -d to run as a deamon > > > > > > I have no idea why is not working when restarting, at least is > the > > process running ? > > > > > > Corneliu > > > > > > wettingus <walter_hollenstein@xxxx> wrote: > > > > > > Dear all, > > > > > > > > > I am running V2.3R25-uNSLUng-standard-3.18-beta > > > having openssl, openssh and appWeb installed. > > > > > > now I am facing the problem that I can start appWeb by running > > > /opt/etc/init.d/S81appweb from the command line and everything > > looks > > > fine. > > > > > > > > > ps shows /opt/sbin/appWeb -f etc/appWeb.conf running and I can > > access > > > the sample web page. > > > > > > But as soon as I log off the telnet session the appWeb process is > > > terminated as well. > > > > > > when rebooting the SLUG the startup script S81appweb is called > > (added > > > some logging in there), but appWeb is not started, > > > no errors, nothing.... > > > > > > > > > this is my /opt/etc/init.d/S81appweb > > > ------------------------------------------- > > > #!/bin/sh > > > /bin/echo "start S81appweb" >> /test.log > > > > > > sleep 2 > > > if [ -n "`pidof appWeb`" ]; then > > > /bin/killall appWeb 2>/dev/null > > > fi > > > sleep 2 > > > > > > > > > cd /dev > > > rm /dev/random > > > ln -s /dev/urandom /dev/random > > > > > > /bin/echo "call appweb" >> /test.log > > > > > > cd /opt/var/appWeb > > > > > > /opt/sbin/appWeb -f etc/appWeb.conf & > > > > > > cd / > > > /bin/echo "end S81appweb" >> /test.log > > > sleep 2 > > > ------------------------------------------- > > > > > > > > > > > > > > > > > > I am stuck..... > > > > > > Walter > > > > > > > > > > > > > > > > > > > > > > > > > > > [ Moderator Note: All static information is slowly moving to the > > Wiki at http://www.nslu2-linux.org ] > > > > > > > > > Yahoo! Groups SponsorADVERTISEMENT > > > > > > > > > --------------------------------- > > > Yahoo! Groups Links > > > > > > To visit your group on the web, go to: > > > http://groups.yahoo.com/group/nslu2-linux/ > > > > > > To unsubscribe from this group, send an email to: > > > nslu2-linux-unsubscribe-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx > > > > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service. > > > > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Yahoo! Small Business - Try our new resources site! > > > > > > [ Moderator Note: All static information is slowly moving to the Wiki at http://www.nslu2-linux.org ] > > > Yahoo! Groups SponsorADVERTISEMENT > > > --------------------------------- > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/nslu2-linux/ > > To unsubscribe from this group, send an email to: > nslu2-linux-unsubscribe-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - Easier than ever with enhanced search. Learn more. [ Moderator Note: All static information is slowly moving to the Wiki at http://www.nslu2-linux.org ] |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Problem starting appWeb (new findings): 00298, CORNELIU DOBAN |
|---|---|
| Next by Date: | Fat32 Disk Partition: 00298, Robert Hammond |
| Previous by Thread: | Re: Re: Problem starting appWeb (new findings)i: 00298, CORNELIU DOBAN |
| Next by Thread: | Re: Problem starting appWeb (new findings): 00298, wettingus |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |