|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST] 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>
---
standalone | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/standalone b/standalone
index 27e2e7d..d9c927f 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 -n 300 "$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 |