ubuntu:systemd:stop_a_service
Differences
This shows you the differences between two versions of the page.
ubuntu:systemd:stop_a_service [2023/06/03 09:16] – created peter | ubuntu:systemd:stop_a_service [2023/06/03 09:18] (current) – peter | ||
---|---|---|---|
Line 4: | Line 4: | ||
sudo systemctl stop ssh | sudo systemctl stop ssh | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== You disabled a systemd service, but it somehow started again ===== | ||
+ | |||
+ | To prevent a service from starting manually, use the **mask** subcommand. | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl mask ssh | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl unmask ssh | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
ubuntu/systemd/stop_a_service.1685783766.txt.gz · Last modified: 2023/06/03 09:16 by peter