[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v4 7/7] standalone: do not rotate empty log files.
By passing -n to savelog. In particular this prevents the creation of an empty $log.0 on first use when $log doesn't exist. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- v2: Put -n in correct place --- standalone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone b/standalone index 27e2e7d..20a6ad5 100755 --- a/standalone +++ b/standalone @@ -192,7 +192,7 @@ ensure_logs() { with_logging() { local log=$1; shift ensure_logs - savelog -c 300 "$log" >/dev/null + savelog -c 300 -n "$log" >/dev/null "$@" 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then -- 2.5.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |