--- lib/PXElator/httpd.pm 2009/07/30 23:57:19 72 +++ lib/PXElator/httpd.pm 2009/07/31 14:42:45 77 @@ -97,8 +97,10 @@ warn "start_stop $daemon $pid pids: ",dump( $pids ); if ( $pid =~ m{^\d+$} ) { - warn "kill 9 $pid"; - kill 9, $pid; + my $pstree = `pstree -p $pid`; + my @pids = $pstree =~ m{\((\d+)\)}g; + warn "pstree $pstree pids ",dump( @pids ); + kill 1, $_ foreach reverse @pids; $pids->{$daemon} = 'stopped'; return qq|$daemon pid $pid stopped|; } else {