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 |
|
|
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%">| |
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 ); |