/[pxelator]/lib/PXElator/httpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/httpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 224 by dpavlin, Sat Aug 15 22:38:02 2009 UTC revision 225 by dpavlin, Sun Aug 16 00:03:30 2009 UTC
# Line 51  use kvm; Line 51  use kvm;
51  use browser;  use browser;
52  use network;  use network;
53  use ip;  use ip;
54    use wireshark;
55    
56  use CouchDB;  use CouchDB;
57    
# Line 138  sub get_request { Line 139  sub get_request {
139                          if ( -e $proc ) {                          if ( -e $proc ) {
140                                  $html .= qq|<a href=/start_stop/$name>$pid</a>|;                                  $html .= qq|<a href=/start_stop/$name>$pid</a>|;
141                                  if ( $debug ) {                                  if ( $debug ) {
142                                          $html .= qq| <a name=$pid href=#proc-$pid>?</a>|;                                          $html .= qq| <a name=$pid href=#proc-$pid>?</a>| if $name->can('start');
143    
144                                          $debug_proc                                          $debug_proc
145                                                  .= qq|<a name=proc-$pid href=#$pid>$proc</a><pre style="font-size: 10%">|                                                  .= qq|<a name=proc-$pid href=#$pid>$proc</a><pre style="font-size: 10%">|
# Line 147  sub get_request { Line 148  sub get_request {
148                                                  ;                                                  ;
149                                  }                                  }
150    
151                                  if ( $name->can('start_fork') ) {                                  if ( $name->can('fork_if_active') ) {
152                                          $html .= qq| <a href=/start_stop/kvm/$_>$_</a>| foreach $name->start_fork;                                          $html .= qq| <a href=/start_stop/$name/$_>$_</a>| foreach $name->fork_if_active;
153                                  }                                  }
154    
155                                  if ( $name->can('actions') ) {                                  if ( $name->can('actions') ) {
156                                          $html .= qq| <a href=/action/kvm/$_>$_</a>| foreach $name->actions;                                          $html .= qq| <a href=/action/$name/$_>$_</a>| foreach $name->actions;
157                                  }                                  }
158                          } else {                          } else {
159                                  $html .= qq|<a href=/start_stop/$name>restart</a> $pid exited|;                                  $html .= qq|<a href=/start_stop/$name>restart</a> $pid exited| if $name->can('start');
160                                    if ( $name->can('fork_actions') ) {
161                                            $html .= qq| <a href=/start_stop/$name/$_>$_</a>| foreach $name->fork_actions;
162                                    }
163                          }                          }
164    
165                          push @rows, ( $name => $html );                          push @rows, ( $name => $html );

Legend:
Removed from v.224  
changed lines
  Added in v.225

  ViewVC Help
Powered by ViewVC 1.1.26