line |
true |
false |
branch |
33
|
3 |
0 |
unless $self->debug |
34
|
0 |
3 |
unless $self->config_file |
35
|
3 |
0 |
unless $self->process_timeout |
46
|
0 |
6 |
if (my $file = $self->pid_file) |
49
|
3 |
3 |
if ($$self{'_config_file'} and $config_file eq $$self{'_config_file'}) |
51
|
3 |
0 |
if $$self{'_pid_file'} |
65
|
3 |
0 |
if (my $pid_file = $config->get('searchd', undef, 'pid_file')) |
76
|
3 |
0 |
if $self->bindir |
80
|
0 |
0 |
if -x "$bin" |
92
|
0 |
13 |
if ($pid) { } |
95
|
0 |
0 |
if $_->pid == $pid |
97
|
0 |
0 |
if $process |
103
|
0 |
132 |
if $self->debug > 2 |
104
|
0 |
132 |
if $cmndline =~ /$pat/ |
121
|
0 |
0 |
unless @{$self->_findproc($pid);} |
136
|
0 |
10 |
if @{$self->_findproc(undef, $pat);} |
148
|
0 |
0 |
unless ($status == 0) |
149
|
0 |
0 |
if ($? == -1) |
150
|
0 |
0 |
if $! == 10 |
153
|
0 |
0 |
if ($? & 127) |
154
|
0 |
0 |
$? & 128 ? : |
174
|
0 |
3 |
if (-f "$pidfile") |
175
|
0 |
0 |
if (my $pid = $pidfile->slurp('chomp', 1)) |
176
|
0 |
0 |
if @{$self->_findproc($pid, 'searchd');} |
179
|
3 |
0 |
unless (@$pids) |
183
|
0 |
3 |
if $self->debug |
192
|
0 |
3 |
if $self->debug |
194
|
0 |
3 |
if (-f "$pidfile") |
196
|
0 |
0 |
if $self->debug |
197
|
0 |
0 |
if ($pid and @{$self->_findproc($pid, qr/searchd/);}) |
198
|
0 |
0 |
if $ok_if_running |
204
|
0 |
3 |
if (my $sudo = $self->searchd_sudo) |
205
|
0 |
0 |
if (ref $sudo ne 'ARRAY') |
212
|
0 |
3 |
if $self->searchd_args |
213
|
0 |
3 |
if $self->debug |
217
|
0 |
3 |
unless defined $pid |
218
|
2 |
1 |
if ($pid == 0) |
219
|
1 |
1 |
if fork |
220
|
0 |
0 |
unless exec @args |
224
|
1 |
0 |
unless $self->_wait_for_proc($self->_get_searchd_matchre) |
232
|
0 |
0 |
if (my $sudo = $self->searchd_sudo) { } |
234
|
0 |
0 |
if (ref $sudo ne 'ARRAY') |
251
|
0 |
3 |
if (@$pids) |
253
|
0 |
0 |
unless ($self->_wait_for_death(@$pids)) |
255
|
0 |
0 |
unless ($self->_wait_for_death(@$pids)) |
273
|
0 |
0 |
if (@$pids) { } |
287
|
0 |
0 |
if (my $sudo = $self->indexer_sudo) |
288
|
0 |
0 |
if (ref $sudo ne 'ARRAY') |
295
|
0 |
0 |
if $self->debug |
296
|
0 |
0 |
unless -x "$indexer" |
300
|
0 |
0 |
if $self->indexer_args |
301
|
0 |
0 |
if @extra_args |
303
|
0 |
0 |
if (my $status = _system_with_status(@args)) |