LauwismeL
Denoβ€’11mo ago
Lauwisme

Best Practice for Windows Service Watchdog (GUI Apps)?

Hi everyone,

I'm looking for the best way to create a watchdog service using Deno on Windows. This service needs to:

- Run as a Windows service: Ideally, it should start automatically on system boot.
- Launch GUI applications: It needs to be able to start and interact with applications that have a graphical user interface.
- Monitor process health: It should continuously check if the launched GUI applications are running.
- Restart crashed applications: If a monitored application crashes or is closed, the watchdog should automatically restart it.

I'm aware that running GUI applications from a service can be tricky due to session isolation. I'm hoping to find a Deno-centric approach that handles this as smoothly as possible.

Specifically, I'm interested in:

- Best practices for creating a Windows service with Deno.
- Reliable methods for launching and monitoring GUI applications from a service context.
- Any Deno modules or libraries that could simplify this task.
- Any caveats related to session 0 isolation that I should be aware of, and how to work around them.

Any advice or examples would be greatly appreciated! Thanks in advance.
Was this page helpful?