Cleanup frontend codebase (STOR-1342)

[STOR-1355] The signal handler should consider also SIGTERM (currently it handles SIGINT) Created: 15/Mar/21  Updated: 14/Apr/21  Resolved: 29/Mar/21

Status: Closed
Project: StoRM
Component/s: frontend
Affects Version/s: 1.11.19
Fix Version/s: None
Security Level: Public (Visbile by non-authn users.)

Type: Sub-task Priority: Major
Reporter: Francesco Giacomini Assignee: Francesco Giacomini
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The frontend installs a signal handler for SIGINT, whereas the default for systemd is SIGTERM.

Change it in code, instead of specifying a different signal in the systemd unit.

Note that an effect of the current situation is that when the SIGTERM signal is received, the frontend dies without doing a proper cleanup, including missing some final log statements.



 Comments   
Comment by Francesco Giacomini [ 29/Mar/21 ]

https://github.com/italiangrid/storm-frontend/pull/30

Generated at Sun Apr 06 01:46:35 CEST 2025 using Jira 10.3.4#10030004-sha1:d6812f2d35a143c1c5fc283d2f5a72582f40aaf1.