| line |
true |
false |
branch |
|
70
|
0 |
0 |
if $self->options->{'version'} |
|
71
|
0 |
0 |
if ($self->options->{'help'}) |
|
76
|
0 |
0 |
if ($self->can($action_method)) { } |
|
78
|
0 |
0 |
unless $action eq 'start' or $action eq 'restart' |
|
89
|
0 |
0 |
unless %options_desc |
|
96
|
0 |
0 |
if ($command =~ s/\=(.)%?//g) |
|
97
|
0 |
0 |
if $1 eq 's' |
|
98
|
0 |
0 |
if $1 eq 'i' |
|
100
|
0 |
0 |
if $command =~ s/\!$// |
|
101
|
0 |
0 |
if length $command > $max_length |
|
106
|
0 |
0 |
if ($self->can($raw_option)) { } |
|
135
|
0 |
0 |
if defined $default_value |
|
159
|
0 |
0 |
if exists $self->options->{$option} |
|
167
|
0 |
0 |
unless $self->chroot |
|
170
|
0 |
0 |
unless mkdir $tmpdir |
|
173
|
0 |
0 |
unless chown $self->uid, $self->gid, $tmpdir |
|
181
|
0 |
0 |
unless mkdir "$tmpdir/$dir" |
|
187
|
0 |
0 |
unless copy("$file_to_copy", "$tmpdir/$file_to_copy") |
|
191
|
0 |
0 |
unless CORE::chroot "$tmpdir/" |
|
193
|
0 |
0 |
unless chdir '/' |
|
209
|
0 |
0 |
unless open my $pidfh, "+>$pidfile" |
|
217
|
0 |
0 |
unless unlink $self->pidfile |
|
231
|
0 |
0 |
if (my $pid = $self->get_pid) |
|
242
|
0 |
0 |
if (my $pid = fork) |
|
274
|
0 |
0 |
if ($self->is_running) |
|
282
|
0 |
0 |
if (my $pid = $self->is_running) { } |
|
294
|
0 |
0 |
if ($pid) { } |
|
310
|
0 |
0 |
if $self->check_pid($pid) |
|
324
|
0 |
0 |
if (-r $pidfile) |
|
325
|
0 |
0 |
unless open my $pidfh, "<$pidfile" |
|
329
|
0 |
0 |
if (my $pid_to_check = $1) |
|
331
|
0 |
0 |
if $self->check_pid($pid_to_check) |
|
341
|
0 |
0 |
unless $pid |
|
343
|
0 |
0 |
if $^O eq 'darwin' |
|
354
|
0 |
0 |
unless $self->daemon |
|
357
|
0 |
0 |
unless defined(my $pid = fork) |
|
358
|
0 |
0 |
if ($pid) |
|
362
|
0 |
0 |
unless setsid() |
|
363
|
0 |
0 |
unless open STDIN, '/dev/null' |
|
364
|
0 |
0 |
unless open STDOUT, '>/dev/null' |
|
365
|
0 |
0 |
unless open STDERR, '>/dev/null' |
|
372
|
0 |
0 |
if $level > $self->log_level |
|
412
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'user'}) { } |
|
424
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'pidfile'}) { } |
|
436
|
2 |
8 |
if (@_) { } |
|
|
4 |
4 |
elsif (exists $$self{'__PACKAGE__'}{'daemon'}) { } |
|
448
|
1 |
4 |
if (@_) { } |
|
458
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'chroot'}) { } |
|
470
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'log_level'}) { } |
|
482
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'group'}) { } |
|
494
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'name'}) { } |
|
506
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'options'}) { } |
|
517
|
0 |
0 |
if (@_) { } |
|
|
0 |
0 |
elsif (exists $$self{'__PACKAGE__'}{'options_desc'}) { } |