We are dealing with a vendor's product, which has a nasty tendency to crash (with a massive core-dump) on shut down (upon receiving a SIGTERM
).
We don't want to disable core-dumping for it completely, because, when crashes happen during normal runtime, cores are useful. Can we disable the core-dumping by a process right before killing it?
Other than by writing our own core-handling program, that is...
KillSignal=SIGKILL
or some other signal in the unit (default is SIGTERM). This would then be used to stop the process. Or try adding a cleanExecStop=
mechanism.