ubuntu:systemd:prevent_a_service_from_starting_manually
Differences
This shows you the differences between two versions of the page.
ubuntu:systemd:prevent_a_service_from_starting_manually [2023/06/03 09:19] – created peter | ubuntu:systemd:prevent_a_service_from_starting_manually [2023/06/03 09:20] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - SystemD - Prevent a service from starting manually ====== | ====== Ubuntu - SystemD - Prevent a service from starting manually ====== | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl mask ssh | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl unmask ssh | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
ubuntu/systemd/prevent_a_service_from_starting_manually.1685783979.txt.gz · Last modified: 2023/06/03 09:19 by peter