PDA

View Full Version : Process Not Starting



drezha
05-06-2007, 11:35 AM
I'm trying to get a second instance of thttpd serve running on my Slug.:sigh:

Been trying to follow the instrutions here (http://www.nslu2-linux.org/wiki/HowTo/SimpleHomeWebsite)

I've realised that maually entering

/usr/sbin/thttpd -C /etc/thttpd-website.conf

works and gets it started but my startup file refuses to. (I followed what it said...)

Tried chmod +x and chmod 775 but that doesn't help.

Currently it appears as:-

/usr/sbin/thttpd -C /etc/thttpd-website.conf
After a couple of failures, I add edited it to

#!/bin/sh
/usr/sbin/thttpd -C /etc/thttpd-website.conf
which hasn't helped either.

Anyone able to help?

Bok
05-06-2007, 06:09 PM
Drezha,

I take it you mean this is a startup script right ?

Does it give you any information at all?

Try adding a > /home/<whatever>/thttpd.log 2>&1

after the command and see if anything is in there.

I've just installed 7.04 server under VMWare on an opteron 170. Not sure if I'll get much time today to do anything else with it, but certainly tomorrow.

Bok

drezha
05-06-2007, 07:29 PM
Yeah this is a startup script.

Add > /home/<whatever>/thttpd.log 2>&1 to the command in the script or when I manually give it?

Bok
05-06-2007, 09:55 PM
In the script. Just to see if there is any output at all..

drezha
05-14-2007, 07:50 PM
Right got round to trying this today...

Adding > /var/tmp/thttpd.log 2>&1 did nothing. It created the file thttpde but had no text in.

-l /tmp/file.log showed nothing either.

Bok
05-14-2007, 08:08 PM
I don't really know what a 'SLUG' is but it looks like it's just running a slimmed down SYS5 unix.

Can you run dmesg on it to see what the startup says?

You did name the startup file as S90website or something like that ? The uppercase S is important as the startup script only looks for those with capital S I believe.

I'm presuming this one is running on a different port as the instructions show, right?

Bok

drezha
05-14-2007, 08:20 PM
This is a Slug..
http://daduke.org/img/nslu2.jpg

Lovely little thing :D

Yeah it has a capital S. It's now S70website as I thought the startup script my search for S60 then S70 etc...

Mind I have a script at S60 I'm not sure if it's starting and thats my DynDNS script...

When do you use dmesg?

Bok
05-14-2007, 08:23 PM
Startup just trawls through all Sxx in order , so S70 would be ok.

if you have a commandline, just type dmesg. It basically displays the startup messages usually held in /var/log/messages

Bok