User Tools

Site Tools


ubuntu:systemd:stop_a_service

Differences

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

Link to this comparison view

ubuntu:systemd:stop_a_service [2023/06/03 09:16] – created peterubuntu:systemd:stop_a_service [2023/06/03 09:18] (current) peter
Line 4: Line 4:
 sudo systemctl stop ssh sudo systemctl stop ssh
 </code> </code>
 +
 +----
 +
 +===== 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
 +</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/stop_a_service.1685783766.txt.gz · Last modified: 2023/06/03 09:16 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki