Commit a152f5e8 authored by Brian Cassidy's avatar Brian Cassidy

New upstream release

parent e4d9336f
Revision history for Perl extension App::Daemon.
0.08 (10/08/2009)
(ms) [RT 50326] Fixed insecure dependency error in tainted mode
by untainting the string obtained by appname().
0.07 (03/24/2009)
(ms) Applied patch by Sadrak [rt:44513] to check if Log4perl has
already been initialized and skip the easy_init call in this
case. Note that -v then has to be handled by the user-provided
Log4perl configuration instead.
0.06 (03/05/2009)
(ms) Added detach() as an importable method for simple daemons.
......
......@@ -2,7 +2,7 @@ package App::Daemon;
use strict;
use warnings;
our $VERSION = '0.06';
our $VERSION = '0.07';
use Getopt::Std;
use Pod::Usage;
......@@ -71,7 +71,9 @@ sub cmd_line_parse {
$background = 0;
}
if( $l4p_conf ) {
if( Log::Log4perl->initialized() ) {
DEBUG "Log4perl already initialized, doing nothing";
} elsif( $l4p_conf ) {
Log::Log4perl->init( $l4p_conf );
} elsif( !$background ) {
Log::Log4perl->easy_init({ level => $loglevel,
......@@ -259,8 +261,12 @@ sub processes_running_by_name {
###########################################
sub appname {
###########################################
my $base = basename($0);
return $base;
my $appname = basename($0);
# Make sure -T regards it as untainted now
($appname) = ($appname =~ /([\w-]+)/);
return $appname;
}
###########################################
......@@ -481,13 +487,20 @@ User to run as if started as root. Defaults to 'nobody'.
=item -l4p l4p.conf
Path to Log4perl configuration file.
Path to Log4perl configuration file. Note that in this case the -v option
will be ignored.
=item -p pidfile
Where to save the pid of the started process.
Defaults to C</tmp/[appname].pid>.
=item -v
Increase default Log4perl verbosity from $INFO to $DEBUG. Note that this
option will be ignored if Log4perl is initialized independently or if
a user-provided Log4perl configuration file is used.
=head2 Setting Parameters
Instead of setting paramteters like the logfile, the pidfile etc. from
......
--- #YAML:1.0
name: App-Daemon
version: 0.06
abstract: Start an Application as a Daemon
license: ~
generated_by: ExtUtils::MakeMaker version 6.31
distribution_type: module
requires:
File::Basename: 0
File::Pid: 0
File::Temp: 0
Getopt::Std: 0
Log::Log4perl: 1.0
Pod::Usage: 0
Proc::ProcessTable: 0
Test::More: 0
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.2.html
version: 1.2
name: App-Daemon
version: 0.07
abstract: Start an Application as a Daemon
author:
- Mike Schilli <m@perlmeister.com>
license: unknown
distribution_type: module
configure_requires:
ExtUtils::MakeMaker: 0
build_requires:
ExtUtils::MakeMaker: 0
requires:
File::Basename: 0
File::Pid: 0
File::Temp: 0
Getopt::Std: 0
Log::Log4perl: 1.0
Pod::Usage: 0
Proc::ProcessTable: 0
Test::More: 0
no_index:
directory:
- t
- inc
generated_by: ExtUtils::MakeMaker version 6.50
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
######################################################################
App::Daemon 0.06
App::Daemon 0.07
######################################################################
NAME
......@@ -117,12 +117,18 @@ DESCRIPTION
User to run as if started as root. Defaults to 'nobody'.
-l4p l4p.conf
Path to Log4perl configuration file.
Path to Log4perl configuration file. Note that in this case the
-v option will be ignored.
-p pidfile
Where to save the pid of the started process. Defaults to
"/tmp/[appname].pid".
-v Increase default Log4perl verbosity from $INFO to $DEBUG. Note
that this option will be ignored if Log4perl is initialized
independently or if a user-provided Log4perl configuration file
is used.
Setting Parameters
Instead of setting paramteters like the logfile, the pidfile
etc. from the command line, you can directly manipulate
......
libapp-daemon-perl (0.07-1) UNRELEASED; urgency=low
* New upstream release
-- Brian Cassidy <brian.cassidy@gmail.com> Thu, 08 Oct 2009 22:38:53 -0300
libapp-daemon-perl (0.06-1) unstable; urgency=low
* Initial Release (Closes: #550091)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment