[Spread-users] Log rotation

Brad Clements bkc at murkworks.com
Thu Dec 19 12:55:33 EST 2002


On 18 Dec 2002 at 17:06, Van Gale wrote:

> I guess some people have problems with DJB's god complex, and his
> non-conformance to any kind of directory standards, but I really like using
> deamontools, and in fact use it for spread and a number of python based
> servers.  The one server I haven't been able to get working with
> daemontools is Zope, but I haven't really tried hard enough yet hehe.

Sorry if this is OT. Here's a sample run for daemontools that I use

[bkc at strader MurkWorks]$ more ~/Zope/Main1/daemonTools/run
#! /bin/sh
reldir=/home/bkc/Zope/Main1
INSTANCE_HOME=`cd $reldir; pwd`
PATH=$PATH:/usr/local/bin
export INSTANCE_HOME
ZEO_CLIENT=Main-1 export ZEO_CLIENT
PASV_FTP_PORTRANGE=7022:7077 export PASV_FTP_PORTRANGE
ZSP_OWNEROUS_SKIP=1 export ZSP_OWNEROUS_SKIP
PYTHONHOME=/home/bkc/Zope/Zope-2.6.0-linux2-x86
export PYTHONHOME

exec  setuidgid bkc $PYTHONHOME/bin/python \
     $PYTHONHOME/z2.py  -Z0  -F '' -P 7000 -m 7099 -t 8  \
      "$@" >> ${reldir}/daemonTools/log/logfile 2>&1


I should probably do a better job with multilog, but didn't have time to figure out how it 
works, so just append to a static file.




-- 
Brad Clements,                bkc at murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements





More information about the Spread-users mailing list