r67499 - in /trunk/libproc-daemon-perl/debian: changelog control
periapt-guest at users.alioth.debian.org
periapt-guest at users.alioth.debian.org
Tue Jan 18 21:41:36 UTC 2011
Author: periapt-guest
Date: Tue Jan 18 21:41:30 2011
New Revision: 67499
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67499
Log:
Refreshed description
Modified:
trunk/libproc-daemon-perl/debian/changelog
trunk/libproc-daemon-perl/debian/control
Modified: trunk/libproc-daemon-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/debian/changelog?rev=67499&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/debian/changelog (original)
+++ trunk/libproc-daemon-perl/debian/changelog Tue Jan 18 21:41:30 2011
@@ -4,6 +4,7 @@
* Standardized standards version to 3.9.1
* New upstream release
* Added debian/source/format
+ * Refreshed description
-- Nicholas Bamber <nicholas at periapt.co.uk> Tue, 18 Jan 2011 21:24:12 +0000
Modified: trunk/libproc-daemon-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libproc-daemon-perl/debian/control?rev=67499&op=diff
==============================================================================
--- trunk/libproc-daemon-perl/debian/control (original)
+++ trunk/libproc-daemon-perl/debian/control Tue Jan 18 21:41:30 2011
@@ -15,6 +15,29 @@
Package: libproc-daemon-perl
Architecture: all
Depends: ${perl:Depends}, ${misc:Depends}
-Description: Run Perl program as a daemon process
- This module allows a perl program to run as a daemon. The Init
- function does all necessary things a daemon needs to do.
+Description: perl module facilitating 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.
More information about the Pkg-perl-cvs-commits
mailing list