From 55f6c5936145f7df7e27e27d978dcd521a5cf604 Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Tue, 30 Jun 2026 15:13:37 -0500 Subject: [PATCH] Documented signal names now support case-insensitivity Ticket: CFE-612 --- .../promise-types/processes.markdown | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/content/reference/promise-types/processes.markdown b/content/reference/promise-types/processes.markdown index 182a8e4fc..782e693b8 100644 --- a/content/reference/promise-types/processes.markdown +++ b/content/reference/promise-types/processes.markdown @@ -538,32 +538,18 @@ commands: **Description:** A list of names of signals to be sent to a process or sleeps between signals. -Signals from the given list are sent to the process in a sequence. Special -strings of the form `Ns` or just `N` where `N` is a positive integer can be used -to add sleeps between the signals. On Windows, only the kill signal is -supported, which terminates the process. +Signals from the given list are sent to the process in a sequence. Signal +names are matched case-insensitively, so `TERM`, `term`, and `Term` are all +equivalent. Special strings of the form `Ns` or just `N` where `N` is a +positive integer can be used to add sleeps between the signals. On Windows, +only the kill signal is supported, which terminates the process. **Type:** (`slist`) **Allowed input range:** ``` -hup -int -trap -kill -pipe -cont -abrt -stop -quit -term -child -usr1 -usr2 -bus -segv -[0-9]+s? +((?i:hup|int|trap|kill|pipe|cont|abrt|stop|quit|term|child|usr1|usr2|bus|segv)|[0-9]+s?) ``` **Example:** @@ -583,8 +569,17 @@ processes: "snmpd" signals => { "term" , "5s" , "kill" }; + +# Signal names are case-insensitive; these are equivalent to the above: + any:: + + "cfservd" + + signals => { "TERM" , "5S" , "KILL" }; ``` **History:** -- 3.18.2, 3.20.0 Added ability to sleep between signals using `Ns` +- 3.18.2, 3.20.0 Added ability to sleep between signals using `Ns`. +- 3.28.0 Signal names are now matched case-insensitively (e.g. `TERM`, + `term`, and `Term` are all equivalent).