D
D
DVoropaev2018-11-17 23:11:38
linux
DVoropaev, 2018-11-17 23:11:38

Where is the config with enable/disable services located in systemd?

So we did systemctl enable/disable some_service. And where did systemd check the box that now this service should / should not be started at OS startup?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2018-11-18
@DVoropaev

And let's see.

[email protected] ~
> # systemctl enable nginx.service
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.

[email protected] ~
> # systemctl disable nginx.service
Removed /etc/systemd/system/multi-user.target.wants/nginx.service.

The output of commands in the terminal is quite useful to read.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question