Service ignores POSIX SIGINT/SIGTERM signals #74
Labels
1-low
priority denoting isolated changes
app-services
subsystem_affected for application services
bug
Something isn't working
hanoi
Hanoi release
Milestone
The POSIX SIGINT/SIGTERM signals seem to be ignored by app-service-configurable. This prevents systemd from cleanly shutting down the service via SIGTERM when deployed via the snap or a native systemd service unit. Likewise, if a developer runs the service natively on a POSIX compliant system, ctrl-C (which generates SIGINT) will be ignored.
Here's the journal output on an Ubuntu 18.04 system with the latest geneva edgexfoundry snap (from the edge channel) installed:
Steps to reproduce (natively):
Steps to reproduce with the edgefoundry snap (which bundles app-service-configurable for builtin rules-engine integration) on an Ubuntu LTS release (eg. 16.04, 18.04, or 20.04 or corresponding Core version):
$ sudo journalctl -f
$ sudo snap install edgexfoundry --edge
$ sudo snap set edgexfoundry kuiper=on
$ sudo snap set edgexfoundry kuiper=off
The other related issue is that after the service is finally stopped, Consul continually logs failed health checks for the service. I can open a separate issue for this...
May 14 09:36:58 sumo edgexfoundry.consul[5778]: 2020-05-14T09:36:58.893-0400 [WARN] agent: Check is now critical: check="Health Check: AppService-rules-engine"
The text was updated successfully, but these errors were encountered: