Running Unix services at startup on Windows with WSL

Example: Running cron jobs on Windows with WSL

Follow the above directions substituting "cron" for "my-service." Then add cron jobs by running crontab -e as usual.

Example: Fixing GNU/Screen errors in Windows Subsystem for Linux

If you try running "screen" in WSL you get the following error by default:

$ screen -ls
Cannot make directory '/var/run/screen': Permission denied

To fix the error follow the above directions to run "sudo /etc/init.d/screen-cleanup start" at system startup.


You may have to change the file extension after downloading to ".lnk" because Chrome automatically renames the files to prevent "abuse".

Written by Adrian Stoll on 18 Oct 2020, Updated 12 Dec 2020