fix: closing Rocksdb on shutdown signal

This commit is contained in:
pragmaxim
2026-01-26 09:01:25 +01:00
parent 75ca6e1e85
commit 2824b9924e
4 changed files with 94 additions and 30 deletions

View File

@@ -7,7 +7,10 @@ After=network.target
ExecStart={{template "Backend.ExecCommandTemplate" .}}
User={{.Backend.SystemUser}}
Restart=on-failure
# Allow enough time for graceful shutdown/flush work before SIGKILL.
TimeoutStopSec=300
# Be explicit about the signal used for graceful shutdown.
KillSignal=SIGTERM
WorkingDirectory={{.Env.BackendInstallPath}}/{{.Coin.Alias}}
{{if eq .Backend.ServiceType "forking" -}}
Type=forking