underground-software / singularity

KDLP: Beyond the event horizon
https://kdlp.underground.software
GNU General Public License v3.0
0 stars 5 forks source link

orbit: start.sh: use exec to make shutdown work correctly again #158

Closed charliemirabile closed 2 months ago

charliemirabile commented 2 months ago

using exec in the shell script will make uwsgi become pid 1 again which means that it can handle sigterm properly. The memcached daemon that is running in the background will be unceremoniously killed off when uwsgi exits, but this is not a problem because it (being a ram only cache) does not have persistent state.