/[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 88 by dpavlin, Fri Jul 31 18:16:14 2009 UTC revision 89 by dpavlin, Fri Jul 31 18:26:28 2009 UTC
# Line 153  sub get_request { Line 153  sub get_request {
153                  foreach my $name ( sort keys %$pids ) {                  foreach my $name ( sort keys %$pids ) {
154                          my $pid = $pids->{$name} || next;                          my $pid = $pids->{$name} || next;
155    
156                          my $html = qq|<a href=/$name>$pid</a>|;                          my $html = qq|<a href=/start_stop/$name>$pid</a>|;
157    
158                          my $proc = "/proc/$pid/status";                          my $proc = "/proc/$pid/status";
159    
# Line 201  sub get_request { Line 201  sub get_request {
201                  warn $@ if $@;                  warn $@ if $@;
202                  print $client $redirect, qq|<big>$1 = $2</big><br>Location: <a href="$url">$url</a>|;                  print $client $redirect, qq|<big>$1 = $2</big><br>Location: <a href="$url">$url</a>|;
203                  server::debug( $debug ) if $1 eq 'debug';                  server::debug( $debug ) if $1 eq 'debug';
204          } elsif ( $path =~ m{^/start_stop/((?:screen|kvm).*)} ) {          } elsif ( $path =~ m{^/start_stop/((?:screen|kvm).*)} ) { # XXX we don't want to stop all classes
205                  print $client $redirect, start_stop($1);                  print $client $redirect, start_stop($1);
206          } elsif ( $path =~ m{^/action/([^/]+)/(.+)} ) {          } elsif ( $path =~ m{^/action/([^/]+)/(.+)} ) {
207                  $1->$2();                  $1->$2();

Legend:
Removed from v.88  
changed lines
  Added in v.89

  ViewVC Help
Powered by ViewVC 1.1.26