| 1 | #! /usr/bin/perl | ||||||||||||
| 2 | # PODNAME: tapper-action | ||||||||||||
| 3 | # ABSTRACT: cmdline frontend to Tapper::Action/daemonize | ||||||||||||
| 4 | |||||||||||||
| 5 | 6 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 6 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 6 | ▶ | use Tapper::Action::Daemon; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 6 | ▶ | use Cwd; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | |||||||||||||
| 11 | 6 | ▶ | $ENV{MX_DAEMON_STDOUT} ||= '/tmp/tapper_action_daemon_stdout.log'; | ||||||||||
|
Condition50%1/2
$ENV{"MX_DAEMON_STDOUT"} ||= "/tmp/tapper_action_daemon_stdout.log"
MC/DC0%0/1
$ENV{"MX_DAEMON_STDOUT"} ||= "/tmp/tapper_action_daemon_stdout.log"
$ENV{"MX_DAEMON_STDOUT"}
Truth table50%1/2
A
A= $ENV{"MX_DAEMON_STDOUT"}
| |||||||||||||
| 12 | 6 | ▶ | $ENV{MX_DAEMON_STDERR} ||= '/tmp/tapper_action_daemon_stderr.log'; | ||||||||||
|
Condition50%1/2
$ENV{"MX_DAEMON_STDERR"} ||= "/tmp/tapper_action_daemon_stderr.log"
MC/DC0%0/1
$ENV{"MX_DAEMON_STDERR"} ||= "/tmp/tapper_action_daemon_stderr.log"
$ENV{"MX_DAEMON_STDERR"}
Truth table50%1/2
A
A= $ENV{"MX_DAEMON_STDERR"}
| |||||||||||||
| 13 | |||||||||||||
| 14 | 6 | ▶ | $ENV{MX_DAEMON_STDOUT} = '/tmp/tapper_action_daemon_stdout.log' if not -w $ENV{MX_DAEMON_STDOUT}; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 15 | 6 | ▶ | $ENV{MX_DAEMON_STDERR} = '/tmp/tapper_action_daemon_stderr.log' if not -w $ENV{MX_DAEMON_STDERR}; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 16 | |||||||||||||
| 17 | |||||||||||||
| 18 | 6 | my $notify = Tapper::Action::Daemon->new | |||||||||||
| 19 | ( | ||||||||||||
| 20 | basedir => getcwd, | ||||||||||||
| 21 | pidfile => '/tmp/tapper-action-daemon.pid', | ||||||||||||
| 22 | ); | ||||||||||||
| 23 | 6 | $notify->run; | |||||||||||
| 24 | |||||||||||||
| 25 | __END__ | ||||||||||||