From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1464 Path: news.gmane.org!not-for-mail From: Sascha =?iso-8859-15?Q?H=FCdepohl?= Newsgroups: gmane.comp.sysutils.supervision.general Subject: runit - lighty - access_log - named pipe - svlog Date: Tue, 3 Jul 2007 20:22:01 +0200 Message-ID: <20070703182201.GA2043@b491.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183486928 14340 80.91.229.12 (3 Jul 2007 18:22:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2007 18:22:08 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1701-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jul 03 20:22:07 2007 connect(): Connection refused Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1I5n0n-0004i6-L3 for gcsg-supervision@gmane.org; Tue, 03 Jul 2007 20:22:05 +0200 Original-Received: (qmail 10964 invoked by uid 76); 3 Jul 2007 18:22:26 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 10953 invoked from network); 3 Jul 2007 18:22:26 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1464 Archived-At: Hi! I'm running lighttpd and i hate it using syslog. I can't set it up to log to stdout so i thought about using named pipes. lighttpd.conf: server.errorlog = "log.pipe" accesslog.filename = "log.pipe" lighttpd/run: #!/bin/sh logpipe="log.pipe" if [ ! -p $logpipe ]; then mkfifo -m0640 "$logpipe" chown www-data.adm "$logpipe" fi exec lighttpd -D -f ./lighttpd.conf lighttpd/log/run: #!/bin/sh logpipe="../log.pipe" if [ ! -p $logpipe ]; then mkfifo -m0640 "$logpipe" chown www-data.adm "$logpipe" fi exec 2>&1 exec <> $logpipe exec svlogd ./main Now i wonder if i will run in any problems with this. regards sascha