WHATMAPS(1)

πŸ“¦
version 0.0.14 Β· 4 versions
, in debian trixie, ubuntu questing

okay so bestie, welcome to WHATMAPS(1) β€” it lives in the User Contributed Perl Documentation section, and it's genuinely one of those lil tools that saves your whole entire night πŸŒ™βœ¨ pull up a chair, we're doing this together.


πŸŽ€ NAME πŸŽ€

whatmaps β€” find and restart services after library upgrades πŸ’…


🌸 SYNOPSIS 🌸

=encoding utf8
whatmaps [--restart] [--print-cmds=FILE] pkg1 [pkg2 pkg3 ...]

yeah that =encoding utf8 is just chilling in there, we keep it exactly as-is, no touching, that's the law 🫢


✨ DESCRIPTION ✨

so here's the vibe: you upgraded a library and now a bunch of services are still running with the old version mapped into their memory, which is giving stale and chaotic. whatmaps is here to find those services for you, bestie πŸ’–

it does this by extracting a list of shared objects from the packages you hand it on the command line. then it looks at the list of running processes to find the ones that map those shared objects, and it uses your distribution's package manager to figure out which packages ship them. then β€” the moment you've been waiting for β€” it prints out a list of services in those packages that likely need to be restarted. iconic behaviour honestly 🌈

by default it assumes that all services in the found packages need a restart 😳 but it also keeps an internal, distribution-specific list of exceptions, so it's not just out here restarting everything willy-nilly, she's got ✨standards✨

now, the flags, and yes there are only two but they're important:

  • --restart β€” the services get restarted without any prompting. no confirmation, no "are you sure", she just goes πŸ”₯
  • --prind-cmds β€” with this one the restart commands are written to a file for later execution πŸ“ (yes, the manpage literally spells it --prind-cmds, we do not edit, we do not correct, we simply report 🫑)
also on Debian systems, whatmaps can be run automatically by apt-get πŸ‘€ check /usr/share/doc/whatmaps/README for the details. automation?? we love her.

πŸ‘€ SEE ALSO πŸ‘€

the latest version is available at <https://honk.sigxcpu.org/piki/projects/whatmaps/> β€” go look, she's cute 🌸


πŸ‘‘ AUTHOR πŸ‘‘

Guido GΓΌnther <agx@sigxcpu.org> β€” the mastermind, the moment, the main character πŸ’œ


and that's a wrap, bestie πŸŽ€ this page is perl v5.38.2, dated 2024-07-06, and it is of course WHATMAPS(1) β€” go restart some services, you've got this πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from