r61814 - in /trunk/libapp-daemon-perl: Changes Daemon.pm META.yml README debian/changelog

carnil-guest at users.alioth.debian.org carnil-guest at users.alioth.debian.org
Sat Aug 21 14:55:30 UTC 2010


Author: carnil-guest
Date: Sat Aug 21 14:55:22 2010
New Revision: 61814

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=61814
Log:
New upstream release

Modified:
    trunk/libapp-daemon-perl/Changes
    trunk/libapp-daemon-perl/Daemon.pm
    trunk/libapp-daemon-perl/META.yml
    trunk/libapp-daemon-perl/README
    trunk/libapp-daemon-perl/debian/changelog

Modified: trunk/libapp-daemon-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-daemon-perl/Changes?rev=61814&op=diff
==============================================================================
--- trunk/libapp-daemon-perl/Changes (original)
+++ trunk/libapp-daemon-perl/Changes Sat Aug 21 14:55:22 2010
@@ -1,4 +1,7 @@
 Revision history for Perl extension App::Daemon.
+
+0.10 (08/19/2010)
+    (ms) Writing pid file before dropping privileges (just like logfile).
 
 0.09 (04/09/2010)
     (ms) Fixed find_option example on manual page. Thanks to 

Modified: trunk/libapp-daemon-perl/Daemon.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-daemon-perl/Daemon.pm?rev=61814&op=diff
==============================================================================
--- trunk/libapp-daemon-perl/Daemon.pm (original)
+++ trunk/libapp-daemon-perl/Daemon.pm Sat Aug 21 14:55:22 2010
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.09';
+our $VERSION = '0.10';
 
 use Getopt::Std;
 use Pod::Usage;
@@ -82,9 +82,6 @@
         DEBUG "Log4perl already initialized, doing nothing";
     } elsif( $l4p_conf ) {
         Log::Log4perl->init( $l4p_conf );
-    } elsif( !$background ) {
-        Log::Log4perl->easy_init({ level => $loglevel, 
-                                   layout => "%F{1}-%L: %m%n" });
     } elsif( $logfile ) {
         my $levelstring = Log::Log4perl::Level::to_level( $loglevel );
         Log::Log4perl->init(\ qq{
@@ -134,6 +131,7 @@
         if($action eq "restart") {
             sleep 1;
         } else {
+            INFO "Process $$ stopped by request.";
             exit 0;
         }
     }
@@ -153,10 +151,6 @@
         }
     };
     
-    INFO "Process ID is $$";
-    pid_file_write($$);
-    INFO "Written to $pidfile";
-
     return 1;
 }
 
@@ -167,7 +161,7 @@
 
     umask(0);
  
-      # Make sure the child isn't killed when the uses closes the
+      # Make sure the child isn't killed when the user closes the
       # terminal session before the child detaches from the tty.
     $SIG{'HUP'} = 'IGNORE';
  
@@ -186,6 +180,10 @@
         # process group leader of a new process group.
     POSIX::setsid();
  
+    INFO "Process ID is $$";
+    pid_file_write($$);
+    INFO "Written to $pidfile";
+
     if($as_user) {
         user_switch();
     }

Modified: trunk/libapp-daemon-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-daemon-perl/META.yml?rev=61814&op=diff
==============================================================================
--- trunk/libapp-daemon-perl/META.yml (original)
+++ trunk/libapp-daemon-perl/META.yml Sat Aug 21 14:55:22 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               App-Daemon
-version:            0.09
+version:            0.10
 abstract:           Start an Application as a Daemon
 author:
     - Mike Schilli <m at perlmeister.com>
@@ -25,7 +25,7 @@
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.50
+generated_by:       ExtUtils::MakeMaker version 6.55_02
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: trunk/libapp-daemon-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-daemon-perl/README?rev=61814&op=diff
==============================================================================
--- trunk/libapp-daemon-perl/README (original)
+++ trunk/libapp-daemon-perl/README Sat Aug 21 14:55:22 2010
@@ -1,5 +1,5 @@
 ######################################################################
-    App::Daemon 0.09
+    App::Daemon 0.10
 ######################################################################
 
 NAME

Modified: trunk/libapp-daemon-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libapp-daemon-perl/debian/changelog?rev=61814&op=diff
==============================================================================
--- trunk/libapp-daemon-perl/debian/changelog (original)
+++ trunk/libapp-daemon-perl/debian/changelog Sat Aug 21 14:55:22 2010
@@ -1,3 +1,9 @@
+libapp-daemon-perl (0.10-1) UNRELEASED; urgency=low
+
+  * New upstream release
+
+ -- Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com>  Sat, 21 Aug 2010 16:53:57 +0200
+
 libapp-daemon-perl (0.09-1) unstable; urgency=low
 
   [ Salvatore Bonaccorso ]




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