Re: thttpd-2.2.4 + daemontools-0.76

Bernhard Graf <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
On Wednesday 26 November 2003 11:16, Dale Gallagher wrote:

> However, as per a post by Yusuf Goolamabbas to the thttpd
> list on 2000-09-26, I tried the following to log via
> multilog and it dies repeatedly, resulting in a defunct
> thttpd process.
>
> /service/thttpd/run:
>
> #!/bin/sh
> exec setuidgid thttpd /usr/local/sbin/thttpd \
>     -D -p 8500 -d /home/httpd/iphost/html -u thttpd \
>     -l /dev/stdout

First you should redirect stderr to stdout to see thttpd's error message 
(provided that thttpd writes an error message to stderr before it 
terminates).

I assume that /dev/stdout is only writable for root in this situation.
Does it work without using setuidgid?
-- 
Bernhard Graf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.