Skip to content

Reliability: auto-restart FileMill on crash (supervised Windows service) #4

Description

@brocla

Backlog: Reliability & durability

Problem

FileMill is started by a scheduled task at logon (scripts/Install-FileMillScheduledTask.ps1Start-FileMill.ps1). That covers reboots and logins, but a scheduled task is a launcher, not a supervisor: if the filemill process crashes, it stays down until the next logon. Today's resilience is "survives reboot, does not survive a crash." For an always-on service this is the biggest gap.

Proposed solution

Run FileMill under a supervisor configured to restart it, easiest first:

  1. Wrap as a Windows Service with NSSM or WinSW (recommended) — turns the console app into a service with a "restart on exit/failure" recovery policy, no code change. This is exactly how cloudflared (the tunnel) already runs on the same box, so there's precedent.
  2. Add restart-on-failure to the scheduled task — Task Scheduler Settings → "If the task fails, restart every N minutes." Weaker, zero new tooling.
  3. Native Windows service (handle service control messages in Go) — most work, least benefit over NSSM/WinSW.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions