This is an article explaining how to start some service without
systemd on WSL and some thoughts.
I recently have a nodejs server with Redis and MySQL to set up and thinking that using ubuntu will be a lot easier to set up than doing it in Windows, I tried to set up on WSL. When I tried to set up using MySQL, I realized that MySQL now uses
systemd to start server instead of good ol’
service, and WSL has not yet supported systemd and the first issue report about systemd is still open and not solved. This means we cannot use anything related to
systemctl. Same thing happened when I try to setup the openSSH Server on openSUSE, as openSUSE do not provide
service version of openSUSE Server startup script.
the solution is simple, just use its still existed
init.d service on system, that is:
but this reminds me that as the adoption of
systemd in Debian and Ubuntu in the late 2013, it becomes increasingly controversy, with bug exploited, and system abandon it,
systemd is just not friendly. Software should have at least two methods (
systemd) for service control so that all *inx can be properly used.