Related to Does taskkill allow caddy to shut down gracefully?
If I want to stop caddy on Windows I can call
taskkill /IM caddy.exe
however I get
ERROR: The process “caddy.exe” with PID 7020 could not be terminated.
Reason: This process can only be terminated forcefully (with /F option).
if I use /F eg
taskkill /IM caddy.exe /F
this will kill the caddy process, but does not allow graceful shutdown.
Is there something in the code that prevents taskkill without /f from terminating caddy? Could it be changed?