每次在WSL2上启动Ubuntu时,我都需要运行WSL2。
当我启动Ubuntu时,如何使服务自动启动?
WSL不使用systemd,所以sudo systemctl enable postgresql不能工作。
$ sudo systemctl status postgresql
System has not been booted with systemd as init system (PID 1).
Can't operate. Failed to connect to bus: Host is down
是否有一种在启动时启动服务的标准方法?
编辑
我想在Ubuntu启动时