CTRL SCRIPT SIGNAL HANDLER

Discussion about recent product features & solutions!
2 posts • Page 1 of 1
riccardo.crociani
Posts:34
Joined: Tue Mar 31, 2015 12:52 pm

CTRL SCRIPT SIGNAL HANDLER

Post by riccardo.crociani »

Hello,

is there any way to catch the signal (SIGTERM, SIGKILL) from inside a control script ?
That would be useful to perform a clean close.

Thanks for any help.

Riccardo

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: CTRL SCRIPT SIGNAL HANDLER

Post by gschijndel »

It is possible to connect to the 'exitRequested' event with 'sysConnect()' to catch the 'SIGTERM' signal. On a 'SIGKILL' it is not possible to perform a clean close.

2 posts • Page 1 of 1