Packaging varnish for Fedora
Dag-Erling Smørgrav
des at linpro.no
Thu May 10 09:37:29 CEST 2007
Ingvar Hagelund <ingvar at linpro.no> writes:
> * Dag-Erling Smørgrav
> > I would recommend simply running 'varnishlog -w /var/log/varnish.log'
> > to store raw log data. It will reopen the file if it receives a HUP,
> > so it plays nice with logrotate / newsyslog.
> Right. Adding '-a' not to overwrite old logs.
Good point, thanks.
> It seems that varnishlog does not daemonize itself. Is it a lot of pain
> to add some code to make it do this? The RedHat init scripts depend on
> daemons daemonizing themselves.
No, it should be easy to do. I also need to add support for a pid
file. Since varnishd already has a -p option, I think I'll use -P for
both varnishd and varnishlog.
Is it OK to daemonize if and only if a pid file was specified, or should
we have a separate option (-D?) for that?
DES
--
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no
More information about the varnish-dist
mailing list