Mojo::...up::v1(3pm)

πŸ’– Mojo::...up::v1(3pm) πŸ’–

okay bestie, welcome to Mojo::IOLoop::ReadWriteProcess::CGroup::v1 β€” this is the CGroups v1 implementation, straight out of the User Contributed Perl Documentation section of your friendly neighbourhood man pages. pull up a chair πŸͺ‘βœ¨


✨ NAME ✨

Mojo::IOLoop::ReadWriteProcess::CGroup::v1 β€” the CGroups v1 implementation. that's it, that's the whole name, no notes πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's how you actually use it, no cap:

use Mojo::IOLoop::ReadWriteProcess::CGroup::v1;

my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v1->new( name => "test" );

$cgroup->create;
$cgroup->exists;
my $child = $cgroup->child('bar');

like… new it with a name, create it, exists it, and grab yourself a child called 'bar'. iconic behaviour honestly πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe check: this module uses features that are only available on Linux. not "mostly Linux", not "Linux-ish" β€” only Linux, periodt.

and to get the whole pid isolation thing working, it needs cgroups and capability for unshare syscalls. both. no shortcuts, no half-measures 🫢

ngl bestie, if you're not on Linux or you're missing those cgroups/unshare capabilities, this is not the module you're looking for πŸ’€

🌸 METHODS 🌸

Mojo::IOLoop::ReadWriteProcess::CGroup::v1 inherits all methods from Mojo::Base and implements the following new ones.

that's the whole story β€” all that Mojo::Base goodness comes along for the ride, plus its own new ones on top. main character energy, honestly 🌈


🧚 LICENSE 🧚

Copyright (C) Ettore Di Giacinto.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

(so like… go off, remix it, redistribute it β€” just keep it under the same terms as Perl itself, mwah πŸ’‹)


πŸ’œ AUTHOR πŸ’œ

Ettore Di Giacinto <edigiacinto@suse.com>

big shoutout to Ettore for cooking this one up, we love to see it πŸ«ΆπŸ“


πŸ’– that's the whole page bestie β€” no cap, every detail's in there.

signing off with all the love in the world, this page was brought to you by perl v5.42.0, dated 2025-07-25, and rendered under the manual name Mojo::...up::v1(3pm) from the User Contributed Perl Documentation. bye bestie, drink water, use unshare responsibly πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from