r71483 - in /trunk/libproc-daemon-perl: Changes MANIFEST META.yml debian/changelog debian/control debian/copyright debian/patches/series lib/Proc/Daemon.pm lib/Proc/Daemon.pod

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Wed Mar 16 10:39:01 UTC 2011


Author: jawnsy-guest
Date: Wed Mar 16 10:38:34 2011
New Revision: 71483

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=71483
Log:
* New upstream release
* Rewrite control description
  + Remove irrelevant clutter from control description
* Add myself to Copyright and Uploaders

Modified:
    trunk/libproc-daemon-perl/Changes
    trunk/libproc-daemon-perl/MANIFEST
    trunk/libproc-daemon-perl/META.yml
    trunk/libproc-daemon-perl/debian/changelog
    trunk/libproc-daemon-perl/debian/control
    trunk/libproc-daemon-perl/debian/copyright
    trunk/libproc-daemon-perl/debian/patches/series
    trunk/libproc-daemon-perl/lib/Proc/Daemon.pm
    trunk/libproc-daemon-perl/lib/Proc/Daemon.pod

Modified: trunk/libproc-daemon-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/Changes?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/Changes (original)
+++ trunk/libproc-daemon-perl/Changes Wed Mar 16 10:38:34 2011
@@ -1,50 +1,54 @@
-Revision history for Perl module Proc::Daemon.
-
-0.08  Sun Mar 13 2011
-	- The <open> Mode of the daemon file handles STDIN, STDOUT, STDERR can be
-	  specified now. The default Mode values are the same as before.
-	- Updated the documentation.
-
-0.07  Thu Feb 17 2011
-	- Add signal processing to Kill_Daemon().
-	- Updated the documentation.
-
-0.06  Mon Jan 17 2011
-	- A lot of documentation was add to the source code.
-	- Daemon STDIN was fixed to "read" now instead of "write".
-	- Replaced global filehandles with scalars.
-	- Add a <die> if <chdir> fails.
-	- Updated the documentation and add a note to the documentation about the
-	  behavior of process-group Signals.
-
-0.05  Thu Okt 28 2010
-	- fixed a problem when using the old method of calling Proc::Daemon::Init
-	  without object (reported by Alex Samorukov). The parent process didn't
-	  exit.
-	- fixed a problem with Proc::ProcessTable 0.44: Under some conditions
-	  'cmndline' retruns with space and/or other characters at the end.
-	- Update and small fixes in the documentation.
-
-0.04  Sun Okt 24 2010
-	- Added functions: new(), adjust_settings(), fix_filename(), Status(),
-	  Kill_Daemon(), get_pid() and get_pid_by_proc_table_attr().
-	- Init() now returns the PID of the daemon.
-	- Fork() now allways returns values like Perls built-in 'fork' does.
-	- Description was rewritten, extended and moved to the new Daemon.pod file.
-	- Additional test are done at installation.
-	- $SIG{'HUP'} was set to be valid only 'local' (bug report).
-	- POSIX::EAGAIN() was added to Fork() (bug report).
-
-0.03  Thu Jun 19 2003
-	- Licensing is more explicit: Either GPL or Artistic.
-	- Updated author contact information.
-
-0.02  Sat Apr 17 1999
-	- init() function superceded by Init() function.
-	- All open files are closed during daemonization.
-	- A double fork is now down to avoid the potential of acquiring
-	  a controlling terminal.
-	- Added Fork() and OpenMax() functions.
-
-0.01  Thu Jan 27 1998
-	- initial bundled release.
+Revision history for Perl module Proc::Daemon.
+
+0.09  Tue Mar 15 2011
+	- Fix for a possibly not reseted numbered match variable ($1).
+	- Typo fix and text improvement in the documentation.
+
+0.08  Sun Mar 13 2011
+	- The <open> Mode of the daemon file handles STDIN, STDOUT, STDERR can be
+	  specified now. The default Mode values are the same as before.
+	- Updated the documentation.
+
+0.07  Thu Feb 17 2011
+	- Add signal processing to Kill_Daemon().
+	- Updated the documentation.
+
+0.06  Mon Jan 17 2011
+	- A lot of documentation was add to the source code.
+	- Daemon STDIN was fixed to "read" now instead of "write".
+	- Replaced global filehandles with scalars.
+	- Add a <die> if <chdir> fails.
+	- Updated the documentation and add a note to the documentation about the
+	  behavior of process-group Signals.
+
+0.05  Thu Okt 28 2010
+	- fixed a problem when using the old method of calling Proc::Daemon::Init
+	  without object (reported by Alex Samorukov). The parent process didn't
+	  exit.
+	- fixed a problem with Proc::ProcessTable 0.44: Under some conditions
+	  'cmndline' retruns with space and/or other characters at the end.
+	- Update and small fixes in the documentation.
+
+0.04  Sun Okt 24 2010
+	- Added functions: new(), adjust_settings(), fix_filename(), Status(),
+	  Kill_Daemon(), get_pid() and get_pid_by_proc_table_attr().
+	- Init() now returns the PID of the daemon.
+	- Fork() now allways returns values like Perls built-in 'fork' does.
+	- Description was rewritten, extended and moved to the new Daemon.pod file.
+	- Additional test are done at installation.
+	- $SIG{'HUP'} was set to be valid only 'local' (bug report).
+	- POSIX::EAGAIN() was added to Fork() (bug report).
+
+0.03  Thu Jun 19 2003
+	- Licensing is more explicit: Either GPL or Artistic.
+	- Updated author contact information.
+
+0.02  Sat Apr 17 1999
+	- init() function superceded by Init() function.
+	- All open files are closed during daemonization.
+	- A double fork is now down to avoid the potential of acquiring
+	  a controlling terminal.
+	- Added Fork() and OpenMax() functions.
+
+0.01  Thu Jan 27 1998
+	- initial bundled release.

Modified: trunk/libproc-daemon-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/MANIFEST?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/MANIFEST (original)
+++ trunk/libproc-daemon-perl/MANIFEST Wed Mar 16 10:38:34 2011
@@ -1,9 +1,9 @@
-Changes
-MANIFEST
-Makefile.PL
-README
-lib/Proc/Daemon.pm
-lib/Proc/Daemon.pod
-t/01_loadmodule.t
-t/02_testmodule.t
-META.yml                                 Module meta-data (added by MakeMaker)
+Changes
+lib/Proc/Daemon.pm
+lib/Proc/Daemon.pod
+Makefile.PL
+MANIFEST
+META.yml			Module meta-data (added by MakeMaker)
+README
+t/01_loadmodule.t
+t/02_testmodule.t

Modified: trunk/libproc-daemon-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/META.yml?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/META.yml (original)
+++ trunk/libproc-daemon-perl/META.yml Wed Mar 16 10:38:34 2011
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:                Proc-Daemon
-version:             0.08
+version:             0.09
 abstract:            ~
 license:             perl
 author:              

Modified: trunk/libproc-daemon-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/debian/changelog?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/debian/changelog (original)
+++ trunk/libproc-daemon-perl/debian/changelog Wed Mar 16 10:38:34 2011
@@ -1,3 +1,12 @@
+libproc-daemon-perl (0.09-1) UNRELEASED; urgency=low
+
+  * New upstream release
+  * Rewrite control description
+    + Remove irrelevant clutter from control description
+  * Add myself to Copyright and Uploaders
+
+ -- Jonathan Yu <jawnsy at cpan.org>  Wed, 16 Mar 2011 07:00:36 -0400
+
 libproc-daemon-perl (0.08-1) unstable; urgency=low
 
   * New upstream release

Modified: trunk/libproc-daemon-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/debian/control?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/debian/control (original)
+++ trunk/libproc-daemon-perl/debian/control Wed Mar 16 10:38:34 2011
@@ -2,10 +2,12 @@
 Section: perl
 Priority: optional
 Build-Depends: debhelper (>= 8)
-Build-Depends-Indep: perl, libproc-processtable-perl
+Build-Depends-Indep: perl,
+ libproc-processtable-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Marc Haber <mh+debian-packages at zugschlus.de>,
  Krzysztof Krzyżaniak (eloy) <eloy at debian.org>,
+ Jonathan Yu <jawnsy at cpan.org>,
  Nicholas Bamber <nicholas at periapt.co.uk>,
  Salvatore Bonaccorso <carnil at debian.org>
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libproc-daemon-perl
@@ -15,30 +17,9 @@
 
 Package: libproc-daemon-perl
 Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, libproc-processtable-perl
-Description: perl module facilitating running scripts as daemons
+Depends: ${perl:Depends}, ${misc:Depends},
+ libproc-processtable-perl
+Description: module for running scripts as daemons
  Proc::Daemon can be used by a Perl program to initialize itself as a daemon
- You can also check the status of the daemon (alive or dead) and you can kill
- the daemon.
- .
- A daemon is a process that runs in the background with no controlling
- terminal. Generally servers (like FTP, HTTP and SIP servers) run as daemon
- processes.
- .
- Proc::Daemon does the following:
-  - The script forks a child.
-  - The child changes the current working directory to the value of 'work_dir'.
-  - The child clears the file creation mask.
-  - The child becomes a session leader, which detaches the program from the
-    controlling terminal.
-  - The child forks another child (the final daemon process). This prevents
-    the potential of acquiring a controlling terminal at all and detaches the
-    daemon completely from the first parent.
-  - The second child closes all open file descriptors.
-  - The second child opens STDIN, STDOUT and STDERR to the location defined in
-    the constructor.
-  - The second child returns to the calling script, or the program defined
-    in 'exec_command' is executed and the second child never returns.
-  - The first child transfers the PID of the second child (daemon) to the
-    parent and exits. Additionally the PID of the daemon process can be written
-    into a file if 'pid_file' is defined.
+ (a background process with no controlling terminal). You can also check the
+ status of the daemon (alive or dead) and you can kill the daemon.

Modified: trunk/libproc-daemon-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/debian/copyright?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/debian/copyright (original)
+++ trunk/libproc-daemon-perl/debian/copyright Wed Mar 16 10:38:34 2011
@@ -4,8 +4,7 @@
 Name: Proc-Daemon
 
 Files: *
-Copyright:
- 1997-2011, Earl Hood <earl at earlhood.com>
+Copyright: 1997-2011, Earl Hood <earl at earlhood.com>
  1997-2011, Detlef Pilzecker <deti at cpan.org>
 License: Artistic or GPL-1+
 
@@ -15,6 +14,7 @@
  2010, Krzysztof Krzyżaniak (eloy) <eloy at debian.org>
  2011, Nicholas Bamber <nicholas at periapt.co.uk>
  2011, Salvatore Bonaccorso <carnil at debian.org>
+ 2011, Jonathan Yu <jawnsy at cpan.org>
 License: Artistic or GPL-1+
 
 License: Artistic

Modified: trunk/libproc-daemon-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/debian/patches/series?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/debian/patches/series (original)
+++ trunk/libproc-daemon-perl/debian/patches/series Wed Mar 16 10:38:34 2011
@@ -1,1 +1,0 @@
-pod.patch

Modified: trunk/libproc-daemon-perl/lib/Proc/Daemon.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/lib/Proc/Daemon.pm?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/lib/Proc/Daemon.pm (original)
+++ trunk/libproc-daemon-perl/lib/Proc/Daemon.pm Wed Mar 16 10:38:34 2011
@@ -21,7 +21,7 @@
 use strict;
 use POSIX();
 
-$Proc::Daemon::VERSION = '0.08';
+$Proc::Daemon::VERSION = '0.09';
 
 
 ################################################################################
@@ -293,20 +293,16 @@
 #   add a number to the file.
 # Args: ( $self, $key, $extract_mode )
 #   key: one of 'child_STDIN', 'child_STDOUT', 'child_STDERR', 'pid_file'
-#   extract_mode: 1 = separate MODE form filename before checking pathname
-#                 | <undef>
+#   extract_mode: true = separate <open> MODE form filename before checking
+#                 path/filename; false = no MODE to check
 # Returns: nothing
 ################################################################################
 my %memory;
 sub fix_filename {
     my Proc::Daemon $self = shift;
-    my $key = shift;
-    my $var = $self->{ $key };
-    my $mode = '';
-    if ( shift ) {
-        $var =~ s/^([\+\<\>\-\|]+)//;
-        $mode = $1 || ( $key eq 'child_STDIN' ? '<' : '+>' );
-    }
+    my $key  = shift;
+    my $var  = $self->{ $key };
+    my $mode = ( shift ) ? ( $var =~ s/^([\+\<\>\-\|]+)// ? $1 : ( $key eq 'child_STDIN' ? '<' : '+>' ) ) : '';
 
     # add path to filename
     if ( $var =~ s/^\.\/// || $var !~ /\// ) {

Modified: trunk/libproc-daemon-perl/lib/Proc/Daemon.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/lib/Proc/Daemon.pod?rev=71483&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/lib/Proc/Daemon.pod (original)
+++ trunk/libproc-daemon-perl/lib/Proc/Daemon.pod Wed Mar 16 10:38:34 2011
@@ -106,7 +106,7 @@
 NOTE: Because of the second fork the daemon will not be a session-leader and
 therefore Signals will not be send to other members of his process group. If
 you need the functionality of a session-leader you may want to call
-POSIX::setsid() manually on your daemon.
+POSIX::setsid() manually at your daemon.
 
 
 
@@ -132,22 +132,23 @@
 =item child_STDIN
 
 Defines the path to STDIN of your daemon. Defaults to C</dev/null>. Default
-Mode is '<' (read). You can set your prefered Mode as if you use Perls C<open>
-with a two-argument form.
+Mode is '<' (read). You can define other Mode the same way as you do using
+Perls C<open> in a two-argument form.
 
 
 =item child_STDOUT
 
 Defines the path where the output of your daemon will go. Defaults to
-C</dev/null>. Default Mode is '+>' (write/read). You can set your prefered Mode
-as if you use Perls C<open> with a two-argument form.
+C</dev/null>. Default Mode is '+>' (write/read). You can define other Mode the
+same way as you do using Perls C<open> in a two-argument form.
 
 
 =item child_STDERR
 
 Defines the path where the error output of your daemon will go. Defaults to
-C</dev/null>. Default Mode is '+>' (write/read). You can set your prefered Mode
-as if you use Perls C<open> with a two-argument form.
+C</dev/null>. Default Mode is '+>' (write/read). You can define other Mode the
+same way as you do using Perls C<open> in a two-argument form, see example
+below.
 
 
 =item pid_file
@@ -397,7 +398,7 @@
 This module requires the C<POSIX> module to be installed.
 
 The C<Proc::ProcessTable> module is not essentially required but it can be
-usefull if it is installed (see above).
+useful if it is installed (see above).
 
 
 




More information about the Pkg-perl-cvs-commits mailing list