From: "Sascha Hüdepohl" <renegat@fbe.hs-bremen.de>
To: supervision@list.skarnet.org
Subject: runit - lighty - access_log - named pipe - svlog
Date: Tue, 3 Jul 2007 20:22:01 +0200 [thread overview]
Message-ID: <20070703182201.GA2043@b491.dyndns.org> (raw)
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
next reply other threads:[~2007-07-03 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-03 18:22 Sascha Hüdepohl [this message]
2007-07-07 6:13 ` Alex Efros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070703182201.GA2043@b491.dyndns.org \
--to=renegat@fbe.hs-bremen.de \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).