From d9d9126d57f662949f39ac9c69ff5a6dbd819997 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 26 Feb 2007 12:25:04 +0000 Subject: [PATCH] Use -f option to mv. --- zebra/init-script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra/init-script b/zebra/init-script index ae5f3cf..f92c198 100755 --- a/zebra/init-script +++ b/zebra/init-script @@ -1,6 +1,6 @@ #! /bin/sh -# $Id: init-script,v 1.2 2006-12-13 12:02:59 mike Exp $ +# $Id: init-script,v 1.3 2007-02-26 12:25:04 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,7 +25,7 @@ case "$1" in exit 1 fi echo "Starting IRSpy's Zebra" - test -f $logfile && mv $logfile $logfile.old + 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 & echo $! > $pidfile -- 1.7.10.4