#1999: Make TerminationTrigger listen to signals ------------------------------------+--------------------------------------- Reporter: rhaas | Owner: Type: enhancement | Status: review Priority: optional | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: TerminationTrigger ------------------------------------+---------------------------------------
Comment (by rhaas):
This was tested by Ian Hinder on Minerva (AEI, SLURM) which is non public unfortunately. Most likely it would work on other SLURM based systems (eg stampede, comet) as well.
I used the do-nothing option as the default since that is what most other Cactus thorns do, just enabling the thorn does not yet do anything. Changing the default to SIGTERM would change the default behaviour of TerminationTrigger as there is no equivalent of a {{{termination_from_file}}} option. So if we change to SIGTERM as the default signal I think we need to introduce a {{{termination_from_signal}}} which must default to false.
Even without the preemption support it can be useful to trap eg CTRL-C for a clean shutdown or as a faster alternative to a termination file.