standalone: do not rotate empty log files.
PATCH 1/1 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 <[email protected]>
--- standalone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
standalone +1 -1
@@ -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
Signature · 1 line
2.5.3
Ian Campbell writes ("[PATCH OSSTEST] standalone: do not rotate empty log files."):
Quoted 4 lines
By passing -n to savelog.
In particular this prevents the creation of an empty $log.0 on first use when $log doesn't exist.
Acked-by Ian Jackson <[email protected]>
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] standalone: do not rotate empty log files."):
Quoted 4 lines
By passing -n to savelog.
In particular this prevents the creation of an empty $log.0 on first use when $log doesn't exist.
Acked-by Ian Jackson <[email protected]>
"savelog -c -n 300" is bogus, it needs to be "savelog -c 300 -n".
I could have sworn I ran it...