There are at least two bugs related with /etc/init.d/thttpd.

One bug is in thttpd itself: the -i switch doesn't print 
the correct PID in the given file, it's usually one less
the correct pid. Could be due to internal system call spawning
somethign else, no further research on my side. Anyway just
try thttpd -i /tmp/pid, then check /tmp/pid content and
try 'ps #' and 'ps $((#+1))'

The other bug is in the /etc/init.d/thttpd file, the lines:

            if ps ax | grep -q "^$PID"; then

ps xa here doesn't print the pid at start of line, but is
rather indented... so the ^ part is surely bogus.
Also, it would match both 10 and 105 for PID=10...

--strk;

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to