DenoDDeno
Powered by
LauwismeL
Denoβ€’13mo 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.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

what’s the current best practice for bundling?
pixeleetPpixeleet / help
3y ago
Best practice for releasing a deno package on GitHub
ThomasTThomas / help
3y ago
Best practice to import internal components
danilkinkinDdanilkinkin / help
17mo ago