fix: systemd template should not create child process#1688
Conversation
|
Binary incompatibility detected for commit 7ee1214. com.aws.greengrass.lifecyclemanager.KernelAlternatives is binary incompatible and is source incompatible because of METHOD_LESS_ACCESSIBLE Produced by binaryCompatability.py |
|
Unit Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against 7ee1214 |
|
Integration Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against 7ee1214 |
(cherry picked from commit 47c916d)
Issue #, if available:
#1685
Description of changes:
sh -ccreates a new shell process to execute the command which broke how GG systemd handles SIGTERM.Previously before v2.14.0, it was
The change uses exec to remove the additional shell process.
Why is this change necessary:
Make sure the loader correctly propagates SIGTERM to the java process.
How was this change tested:
Any additional information or context required to review the change:
Documentation Checklist:
Compatibility Checklist:
any deprecated method or type.
Refer to Compatibility Guidelines for more information.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.