sudo visudo
%sudo ALL=NOPASSWD: /etc/init.d/<my-service> start
C:\Windows\System32\wsl.exe sudo /etc/init.d/<my-service> start
"C:\Program Files\WindowsApps\CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc\ubuntu2004.exe" run sudo /etc/init.d/<my-service> start
Follow the above directions substituting "cron" for "my-service." Then add cron jobs by running crontab -e
as usual.
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".