MooseX...::File(3pm)
π NAME π
okay so bestie, this is MooseX::Daemonize::Pid::File β PID file management for MooseX::Daemonize. that's it, that's the whole vibe. it lives in the MooseX...::File(3pm) corner of your manual, third section, perl docs, iykyk π
β¨ VERSION β¨
version 0.22 π¦
πΈ DESCRIPTION πΈ
so this object extends MooseX::Daemonize::Pid to add persistence in a Pidfile. like, it remembers stuff. it writes it down. main character behavior fr fr π
this class sets up some basic coercion routines for itself so that it can be created from a Str (a file name), an ArrayRef (an array of path components for a filename), or a Path::Class::File object. so like, however you wanna hand it a path, she's flexible π
this class registers its type with MooseX::Getopt as well, and is expected to be passed on the command line as a string (which will then go through the coercion routines mentioned above). so you type a string, and the coercion magic does its little transformation sequence. slay β¨
π ATTRIBUTES π
pid Intβ this one is inherited from<MooseX:Daemonize::Pid>and extended here so it gets its default value from the Pidfile (if available). no pidfile? no default. that's the deal π«Άfile Path::Class::File | Strβ yeah that's the type, both of those, either one, she contains multitudes π
π METHODS π
clear_pidhas_pidβ okay so both of these methods are inherited from<MooseX:Daemonize::Pid>, so go peek at that module for more info bestie, I'm not gonna repeat it here πremoveβ this removes the Pidfile. bye bye file πwriteβ this writes the Pidfile. hello file βοΈdoes_file_existβ this checks if the Pidfile exists. that's literally it, that's the whole job πis_runningβ this checks if the Pidfile exists. if it does, it checks to see if the process is running. if the Pidfile doesn't exist, it returns false. simple as that, no cap πmeta()β themeta()method fromClass::MOP::Class. iconic, classic, we love her β
π₯ SUPPORT π₯
bugs may be submitted through the RT bug tracker at https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Daemonize (or, if email is more your thing, bug-MooseX-Daemonize@rt.cpan.org).
there is also a mailing list available for users of this distribution, at http://lists.perl.org/list/moose.html.
there is also an irc channel available for users of this distribution, at #moose on irc.perl.org (irc://irc.perl.org/#moose). come hang out, the vibes are immaculate π¦
π AUTHORS π
- Stevan Little
<stevan.little@iinteractive.com> - Chris Prather
<chris@prather.org>
π COPYRIGHT AND LICENCE π
this software is copyright (c) 2007 by Chris Prather.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt π
okay so that's the whole page bestie, and the cute little sign-off at the bottom says this was built against perl v5.30.0 and dated 2019-12-22 β go forth and manage those pidfiles, you absolute legend π«Άβ¨π
π¦ where this page comes from
- debian bookworm: libmoosex-daemonize-perl 0.22-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-daemonize-perl 0.22-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmoosex-daemonize-perl 0.22-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-daemonize-perl 0.22-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms