1MooseX::Daemonize::Pid:U:sFeirleC(o3n)tributed Perl DocuMmoeonsteaXt:i:oDnaemonize::Pid::File(3)
2
3
4

NAME

6       MooseX::Daemonize::Pid::File - PID file management for
7       MooseX::Daemonize
8

DESCRIPTION

10       This object extends MooseX::Daemonize::Pid to add persistence in a
11       Pidfile.
12
13       This class sets up some basic coercion routines for itself so that it
14       can be created from a Str (a file name), ArrayRef (an array of path
15       components for a filename) or a Path::Class::File object.
16
17       This class registers it's type with MooseX::Getopt as well, and is
18       expected to be passed on the command line as a string (which will then
19       go through the coercion routines mentioned above).
20

ATTRIBUTES

22       pid Int
23           This is inherited from <MooseX:Daemonize::Pid> and extended here to
24           get it's default value from the Pidfile (if available).
25
26       file Path::Class::File | Str
27

METHODS

29       clear_pid
30       has_pid
31           Both of these methods are inherited from <MooseX:Daemonize::Pid>
32           see that module for more information.
33
34       remove
35           This removes the Pidfile.
36
37       write
38           This writes the Pidfile.
39
40       does_file_exist
41           This checks if the Pidfile exists.
42
43       is_running
44           This checks if the Pidfile exists, if it does it checks to see if
45           the process is running, if the Pidfile doesn't exist, it returns
46           false.
47
48       meta()
49           The "meta()" method from Class::MOP::Class
50

DEPENDENCIES

52       Obviously Moose
53

INCOMPATIBILITIES

55       None reported.
56

BUGS AND LIMITATIONS

58       No bugs have been reported.
59
60       Please report any bugs or feature requests to
61       "bug-acme-dahut-call@rt.cpan.org", or through the web interface at
62       <http://rt.cpan.org>.
63

AUTHOR

65       Stevan Little  "<stevan.little@iinteractive.com>"
66
68       Copyright (c) 2007-2008, Chris Prather "<perigrin@cpan.org>". All
69       rights reserved.
70
71       This module is free software; you can redistribute it and/or modify it
72       under the same terms as Perl itself. See perlartistic.
73

DISCLAIMER OF WARRANTY

75       BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
76       FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
77       WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
78       PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
79       EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
80       WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
81       ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
82       YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
83       NECESSARY SERVICING, REPAIR, OR CORRECTION.
84
85       IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
86       WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
87       REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
88       TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
89       CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
90       SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
91       RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
92       FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
93       SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
94       DAMAGES.
95
96
97
98perl v5.12.0                      2009-10-05   MooseX::Daemonize::Pid::File(3)
Impressum