MooseX...idFile(3pm)

πŸ“¦
version 0.22 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– 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 the MooseX::Daemonize::Pid::File object that manages the Pidfile. it initializes that object using the init_pidfile method (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 a MooseX::Daemonize::Pid::File object. 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 the daemonize method (from MooseX::Daemonize::Core) and handles writing your Pidfile for you. she's doing the most so you don't have to πŸ”₯.
  • meta β€” the meta() method from Class::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 πŸ‘‘

  1. Stevan Little <stevan.little@iinteractive.com>
  2. Chris Prather <chris@prather.org>

absolute icons, both of them πŸŽ€


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