From: Mike Taylor Date: Wed, 28 Feb 2007 17:50:22 +0000 (+0000) Subject: Append to log rather than starting anew each time. X-Git-Tag: CPAN-v1.02~576 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=ecb9b9866033dffbd528462d0fefcb7148d7e180;p=irspy-moved-to-github.git Append to log rather than starting anew each time. Do not make backup copy of old log. (Both these made possible by use of log rotation.) --- diff --git a/zebra/init-script b/zebra/init-script index f92c198..bf29573 100755 --- a/zebra/init-script +++ b/zebra/init-script @@ -1,6 +1,6 @@ #! /bin/sh -# $Id: init-script,v 1.3 2007-02-26 12:25:04 mike Exp $ +# $Id: init-script,v 1.4 2007-02-28 17:50:22 mike Exp $ # # This is a startup/shutdown script for IRSpy's Zebra server, suitable # for use in a SysV-style init directory such as /etc/init.d (on @@ -25,9 +25,10 @@ case "$1" in exit 1 fi echo "Starting IRSpy's Zebra" - test -f $logfile && mv -f $logfile $logfile.old + # Let log rotation take care of backups + #test -f $logfile && mv -f $logfile $logfile.old ( cd /usr/local/src/cvs/irspy/zebra - zebrasrv-2.0 -f yazserver.xml < /dev/null > $logfile 2>&1 & + zebrasrv-2.0 -f yazserver.xml < /dev/null >> $logfile 2>&1 & echo $! > $pidfile ) ;;