PMSIGNAL(1)

πŸ“¦
version 7.2.2 Β· 2 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– PMSIGNAL(1) β€” the manual, bestie edition πŸ’–

okay so this is a page from the General Commands Manual section of the PCP (Performance Co-Pilot) docs, and we're talking about pmsignal today. Sit down, grab a strawberry πŸ“, it's lowkey the most useful little thing.


✨ NAME ✨

pmsignal β€” send a signal to one or more processes πŸ’…


🌸 SYNOPSIS 🌸

$PCP_BINADM_DIR/pmsignal [-alnp] [-s signal] [PID ...|name ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

So pmsignal is a cross-platform event signalling mechanism made to be used with the tools from the Performance Co-Pilot toolkit, periodt. What it does is send a named signal to one or more processes β€” but heads up, only HUP, USR1, TERM, and KILL are accepted. That's the whole guest list, no plus-ones πŸ™ˆ.

You say which processes by giving PIDs directly, or by giving program names (that's where -a or -p come in, bestie).

  • In the all case, the set of all running processes gets searched for a basename(1) match on name. Like, every process, we're going through them πŸ‘‘.
  • In the program case, the process identifiers get extracted from files in the $PCP_RUN_DIR directory, where the file names are matched on name.pid.

The -n option is the icon of "what if" β€” it reports the list of process identifiers that would have been signalled, but no signals are actually sent. Dry run energy, we love her. 🧚

If you don't specify a signal at all, then the TERM signal gets sent. And the list of supported signals is reported when you use the -l option. Easy.

⚠️ On Linux and UNIX platforms, pmsignal is literally just a simple wrapper around the kill(1) command. On Windows, though? There's no direct equivalent to this mechanism, so an alternate mechanism has been implemented β€” and here's the catch, it's only honoured by PCP tools, not by all Windows utilities. So yeah, iykyk. πŸ’€

πŸŽ€ OPTIONS πŸŽ€

The available command line options are:

  • -a, --all β€” send the signal to all named processes πŸ’«
  • -l, --list β€” list the supported signals πŸ“œ
  • -n, --dry-run β€” list the processes that would be affected (no actual signalling, just vibes) πŸ‘€
  • -p, --program β€” extract programs from PCP runtime PID files πŸ—‚οΈ
  • -s signal, --signal=signal β€” specify the signal to send, one of: HUP, USR1, TERM, KILL 🚨
  • -?, --help β€” display the usage message and exit 🫢

🌈 PCP ENVIRONMENT 🌈

Environment variables with the prefix PCP_ are used to parameterize the file and directory names that PCP uses. On each installation, the file /etc/pcp.conf contains the local values for these variables. And the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). Customisation, slay. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

basename(1), kill(1), killall(1), pcp.conf(5) and pcp.env(5).


and that's the whole page, bestie, no cap πŸ’œ

This one comes to you from Performance Co-Pilot β€” that's the PCP source, in the PMSIGNAL(1) manual β€” so go forth, signal responsibly, and remember: TERM is the default, so if you didn't ask for chaos, don't act surprised when you get it 😭 πŸŽ€ ✨

πŸ“¦ where this page comes from