I have a go-based application that needs to save internal data. The application handles signals and stops itself correctly when modd detects a change.
When I stop modd, I would expect that the application also gets a signal and shutdowns correctly. This does not seem to be the case. The application just dies without a good indication why (maybe sigkill).
modd also doesn't log that it want's to send the signal to the process.
normal behaivour:
03:54:21: daemon: ./GTAServerHomepage
>> sending signal terminated
exited: signal: terminated
>> restart backoff... 1000ms
>> starting...
On sigint:
>> starting...
^C>> stopping
➜ backend
Is this the expected behaviour or am i just doing something wrong?