So, I started with your suggestion, but quickly realized most services are already scripts in /etc/init.d, and you usually manage these things with users. For example, for docker, I created a /etc/sudoers.d/docker.sudoers file, with the following:
%docker ALL=(root) NOPASSWD: /etc/init.d/docker start stop restart status
I think I'm also going to see if I can get a feature request endoresed for a [autostart] config section for the /etc/wsl.conf file where you could just list services to autostart like so:
[autostart]
docker = true
postgresqsl = true
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
So, I started with your suggestion, but quickly realized most services are already scripts in /etc/init.d, and you usually manage these things with users. For example, for docker, I created a
/etc/sudoers.d/docker.sudoers
file, with the following:I think I'm also going to see if I can get a feature request endoresed for a
[autostart]
config section for the/etc/wsl.conf
file where you could just list services to autostart like so: