wsl-distrod icon indicating copy to clipboard operation
wsl-distrod copied to clipboard

Discussion about distro auto shutdown

Open sarim opened this issue 3 years ago • 1 comments

In normal use cases, when no more process is running, wsl automatically shuts down the distro. That is obviously won't be possible with distrod, as systemd processes keep running after closing terminal.

Wanted to brainstorm if something similar would be possible with distrod.

sarim avatar Dec 21 '21 15:12 sarim

Interesting discussion. Although personally I don't need it since my motivation to enable systemd is to run services such as ssh or cron, but indeed it would be a good feature for dustrid to be a good distro for everyone's use cases.

One naive idea is to let users to flag only some services such as ssh to keep WSL running, and terminate the distro when there is no flagged services running.

nullpo-head avatar Dec 24 '21 07:12 nullpo-head