# nodejsReportSignal
This is an optional argument used with Signal Mode. It tells the yc-360 script which OS signal to send to a Node.js process to trigger its built in diagnostic report, when your application doesn't use Node's default signal.
Type: string
Default: SIGUSR2
Usage:
- Omitted: the script sends
SIGUSR2, matching the default--report-on-signalbehavior of Node.js. - Specified: the script sends the signal you provide instead. Your application's own
--report-on-signal=<SIGNAL>flag must be set to the same value.
How it works:
- This argument only applies when
nodejsCaptureModeis set tosignal. - Both sides, the Node.js application and the yc-360 script, must agree on the same signal for the report to be triggered successfully.
SIGUSR1isn't supported. Node.js treats it as an inspector activation signal rather than a diagnostic report trigger.- This argument is supported on Linux and macOS only, matching Signal Mode's own platform support.
Example (YAML):
options:
onlyCapture: true
appRuntime: nodejs
nodejsCaptureMode=signal
nodejsReportSignal=SIGUSR2
1
2
3
4
5
2
3
4
5
Example (CLI):
./yc -onlyCapture -p 22534 -appRuntime=nodejs -nodejsCaptureMode=signal -nodejsReportSignal=SIGUSR2
1