SIGTERM Handling - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-06-28
dita:mapPath
wmy1488824663431.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

UNIX/Linux BTEQ processes can be killed by issuing a kill command from another process. In order to give BTEQ the ability to gracefully exit and set a non-0 return code for its own process, the kill must send a trappable SIGTERM signal rather than a non-trappable SIGKILL signal. Either of the following variations of the kill command (where "PID" is replaced with the actual process id for the instance of bteq) will cause a trappable SIGTERM to be sent:

kill PID
kill -15 PID