| line |
true |
false |
branch |
|
37
|
3 |
0 |
unless $self->debug |
|
38
|
0 |
3 |
unless $self->config_file |
|
39
|
3 |
0 |
unless $self->process_timeout |
|
51
|
0 |
6 |
if (my $file = $self->pid_file) |
|
54
|
3 |
3 |
if ($self->{'_config_file'} and $config_file eq $self->{'_config_file'}) |
|
56
|
3 |
0 |
if $self->{'_pid_file'} |
|
70
|
3 |
0 |
if (my $pid_file = $config->get('searchd', undef, 'pid_file')) |
|
81
|
3 |
0 |
if $self->bindir |
|
85
|
0 |
0 |
if -x "$bin" |
|
97
|
0 |
13 |
if ($pid) { } |
|
100
|
0 |
0 |
if $_->pid == $pid |
|
102
|
0 |
0 |
if $process |
|
108
|
0 |
132 |
if $self->debug > 2 |
|
109
|
0 |
132 |
if $cmndline =~ /$pat/ |
|
126
|
0 |
0 |
unless @{$self->_findproc($pid);} |
|
141
|
0 |
10 |
if @{$self->_findproc(undef, $pat);} |
|
151
|
0 |
0 |
unless (@args) |
|
160
|
0 |
0 |
unless ($status == 0) |
|
161
|
0 |
0 |
if ($? == -1) |
|
164
|
0 |
0 |
if ($? & 127) |
|
165
|
0 |
0 |
$? & 128 ? : |
|
185
|
0 |
3 |
if (-f "$pidfile") |
|
186
|
0 |
0 |
if (my $pid = $pidfile->slurp('chomp', 1)) |
|
187
|
0 |
0 |
if @{$self->_findproc($pid, 'searchd');} |
|
190
|
3 |
0 |
unless (@$pids) |
|
194
|
0 |
3 |
if $self->debug |
|
203
|
0 |
3 |
if $self->debug |
|
205
|
0 |
3 |
if (-f "$pidfile") |
|
207
|
0 |
0 |
if $self->debug |
|
208
|
0 |
0 |
if ($pid and @{$self->_findproc($pid, qr/searchd/);}) |
|
209
|
0 |
0 |
if $ok_if_running |
|
215
|
0 |
3 |
if (my $sudo = $self->searchd_sudo) |
|
216
|
0 |
0 |
if (ref $sudo ne 'ARRAY') |
|
223
|
0 |
3 |
if $self->searchd_args |
|
224
|
0 |
3 |
if $self->debug |
|
228
|
0 |
3 |
unless defined $pid |
|
229
|
2 |
1 |
if ($pid == 0) |
|
230
|
1 |
1 |
if fork |
|
232
|
0 |
1 |
if ($self->pre_exec_callback) { } |
|
241
|
0 |
0 |
unless exec @args |
|
245
|
1 |
0 |
unless $self->_wait_for_proc($self->_get_searchd_matchre) |
|
253
|
0 |
0 |
if (my $sudo = $self->searchd_sudo) { } |
|
255
|
0 |
0 |
if (ref $sudo ne 'ARRAY') |
|
272
|
0 |
3 |
if (@$pids) |
|
274
|
0 |
0 |
unless ($self->_wait_for_death(@$pids)) |
|
276
|
0 |
0 |
unless ($self->_wait_for_death(@$pids)) |
|
294
|
0 |
0 |
if (@$pids) { } |
|
308
|
0 |
0 |
if (my $sudo = $self->indexer_sudo) |
|
309
|
0 |
0 |
if (ref $sudo ne 'ARRAY') |
|
316
|
0 |
0 |
if $self->debug |
|
317
|
0 |
0 |
unless -x "$indexer" |
|
321
|
0 |
0 |
if $self->indexer_args |
|
322
|
0 |
0 |
if @extra_args |
|
324
|
0 |
0 |
if (my $status = _system_with_status(@args)) |