diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-04-06 12:08:16 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-04-06 12:08:16 -0700 |
commit | f483976e90498a8a69534045838ccb898a8f3c11 (patch) | |
tree | e68748c97eecbe7b096aa9ba17aa69f44b112d93 /scripts | |
parent | 7f2779df2bfd703f561ab542973c3128db7356d0 (diff) | |
download | vyatta-cfg-f483976e90498a8a69534045838ccb898a8f3c11.tar.gz vyatta-cfg-f483976e90498a8a69534045838ccb898a8f3c11.zip |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-config-loader.pl | 6 |
1 files changed, 5 insertions, 1 deletions
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"; |