From f483976e90498a8a69534045838ccb898a8f3c11 Mon Sep 17 00:00:00 2001 From: slioch Date: Mon, 6 Apr 2009 12:08:16 -0700 Subject: for fans of the new priority|commit system, debug output is now enabled on config boot. -a action is activated and last output is written to /tmp/bar --- scripts/vyatta-config-loader.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-config-loader.pl b/scripts/vyatta-config-loader.pl index 57ceb47..635ae37 100755 --- a/scripts/vyatta-config-loader.pl +++ b/scripts/vyatta-config-loader.pl @@ -65,6 +65,9 @@ if ($? >> 8) { exit 1; } +#cmd below is added to debug last set of command ordering +my $commit_cmd_debug_noop = "$CWRAPPER commit -a > /tmp/bar"; +my $commit_cmd_debug = "$CWRAPPER commit -d"; my $commit_cmd = "$CWRAPPER commit"; my $cleanup_cmd = "$CWRAPPER cleanup"; my $ret = 0; @@ -91,7 +94,8 @@ foreach (@all_nodes) { # continue after set failure (or should we abort?) } } -$ret = system("$commit_cmd"); +system("$commit_cmd_debug_noop"); +$ret = system("$commit_cmd_debug"); if ($ret >> 8) { print OLDOUT "Commit failed at rank $cur_rank\n"; print WARN "Commit failed at rank $cur_rank\n"; -- cgit v1.2.3