Last active
May 31, 2024 14:30
-
-
Save firejox/beebf1f35dc93dcf669ef4731fd45cfe to your computer and use it in GitHub Desktop.
WSL keep alive (pure systemd file)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=WSL Keep Distro Alive | |
Requires=wsl-keepalive.socket | |
After=wsl-keepalive.socket | |
[Service] | |
ExecStart=/init /mnt/c/Windows/System32/choice.exe /mnt/c/Windows/System32/choice.exe /n | |
StandardInput=socket | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=WSL Keep Distro Alive Socket | |
PartOf=wsl-keepalive.service | |
[Socket] | |
ListenFIFO=/run/WSL/keep-alive | |
RemoveOnStop=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment