PaperCutSoftware / silver

SILVER - A cross-platform service/daemon wrapper with in-build auto-update, crash resilience and more.
MIT License
54 stars 13 forks source link

Add a crash handler to restart a silver instance on panic #24

Closed thejanasatan closed 4 years ago

thejanasatan commented 4 years ago

This is a way of keeping silver alive on Windows for user-level services (not managed by services.msc). This also adds a new key in silver config to configure crashlog location. It also debounces each resurrection attempt and bails if silver crashed more than 5 times in the last hour.

This uses changes to dependency management in #23

We will build a new silver service type service-no-window-immortal which will include the crash handler.

thejanasatan commented 4 years ago

Closing in favour of a PR from a local branch.