MooseX...idFile(3pm)
π MooseX::Daemonize::WithPidFile β the manual, but make it cute π
okay bestie, so this is the 3pm manual page for MooseX::Daemonize::WithPidFile, and I'm about to walk you through it like we're texting at 2am. no cap, every single detail is staying in here. π«Ά
β¨ NAME β¨
MooseX::Daemonize::WithPidFile β a Role with the core daemonization and pidfile management, periodt. π
πΈ VERSION πΈ
version 0.22 β yes she's vintage, yes she still slays. π
π¦ SYNOPSIS π¦
package My::Daemon;
use Moose;
with 'MooseX::Daemonize::WithPidFile';
sub start {
my $self = shift;
# daemonize me ...
$self->daemonize; # << this will write the pidfile for you
# return from the parent,...
return unless $self->is_daemon;
# but continue on in the child (daemon)
}
like. look at that. she just works. β¨
π DESCRIPTION π
So this is a slightly extended basic daemonization Role β it provides Pidfile management along with the core daemonization features found in MooseX::Daemonize::Core. basically the glow-up version of the basics. π
π ATTRIBUTES π
pidfile (is = rw, isa => MooseX::Daemonize::Pid::File)>β this attribute holds theMooseX::Daemonize::Pid::Fileobject that manages the Pidfile. it initializes that object using theinit_pidfilemethod (which is required by this role, so don't skip it bestie π).
π REQUIRED METHODS π
init_pidfileβ this method is what builds the pidfile attribute's object. it should return aMooseX::Daemonize::Pid::Fileobject. no substitutes, we need the real thing π.has_pidfileβ a predicate method that tells you whether your pidfile attribute has been initialized yet. vibe check for your pidfile π«Ά.
π METHODS π
daemonizeβ this adds an"after"method modifier to thedaemonizemethod (fromMooseX::Daemonize::Core) and handles writing your Pidfile for you. she's doing the most so you don't have to π₯.metaβ themeta()method fromClass::MOP::Class. iconic. legendary. standard issue. β
π DEPENDENCIES π
Moose::Role, MooseX::Getopt and MooseX::Daemonize::Pid::File β the whole squad has to be in the group chat or nothing works. πΈ
π§ SUPPORT π§
Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Daemonize> (or bug-MooseX-Daemonize@rt.cpan.org <mailto: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>.
ngl the IRC channel is where the real ones hang out π
π AUTHORS π
- Stevan Little <stevan.little@iinteractive.com>
- Chris Prather <chris@prather.org>
absolute icons, both of them π
π 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.
Portions heavily borrowed from Proc::Daemon which is copyright Earl Hood.
and that's the whole page, bestie!! no cap, you now know everything this Role does π
perl v5.30.0 Β· 2019-12-22 β that's the version and date this manual was born, and honestly? she's aged like fine wine. mwah. πβ¨π¦
π¦ 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