4 ms·
When you close the shell it sort of sleeps; there seems to be some hooks to allow it to wake on request, for ssh, but for the most part the system sleeps and wo
by dleslie 7y ago
When you close the shell it sort of sleeps; there seems to be some hooks to allow it to wake on request, for ssh, but for the most part the system sleeps and won't wake until a shell is opened.
I get around this by having an X app always running, and its behaviour is sufficient to prevent WSL from sleeping.
Some folks I know just leave the shell open, but having an xfce panel is desirable to me.
- pkulak 7y agoIf you used systemd instead of cron it would at least run as soon as it came back, if it was out when it should have run. That's usually sufficient for backups and such.
- dleslie 7y agoBut then I'd have to run systemd. WSL's Ubuntu by default does not have systemd. #> systemctl System has not been booted with systemd as init system (PID 1). Can't operate.
- thrownaway954 7y agothat is strange that they put it to sleep like that. I wonder what the reason is and if there is an actual supported way to prevent this and use it like a regular VM?
- dleslie 7y agoI suspect it is a bug.