From the course: Learning Windows Subsystem for Linux

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Controlling services

Controlling services

- [Instructor] Services are programs that run in the background and wait to be called upon to do something, or which perform a task while they're running. There are a variety of system services and newly installed software can run services as well. We can make our own services too. Ubuntu in WSL uses the System V or SysV init service manager, which is a different tool set than systemd, which most modern Ubuntu installations use. The init tasks are stored as scripts in the /etc/init.d directory. To interact with the init system, we can use the command named service. That command by itself shows us some helpful information. I'll use the --status-all option to see the services that init is aware of. A minus here in the left column, shows that a service is not running, and the plus indicates that it is. A question mark indicates that the service doesn't report a status. I can start up a service from this list with a…

Contents