User Tools

Site Tools


ubuntu:systemd:prevent_a_service_from_starting_manually

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu:systemd:prevent_a_service_from_starting_manually [2023/06/03 09:19] – created peterubuntu: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
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Masked services cannot be started with **systemctl start** command until it is unmasked.
 +
 +<code bash>
 +sudo systemctl unmask ssh
 +</code>
 +
 +</WRAP>
 +
  
ubuntu/systemd/prevent_a_service_from_starting_manually.1685783979.txt.gz · Last modified: 2023/06/03 09:19 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki