MooseX...::File(3pm)

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

πŸ’– 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_pid
  • has_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() β€” the meta() method from Class::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>

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