Useful Commands/Service Management: Difference between revisions
Jump to navigation
Jump to search
| Line 31: | Line 31: | ||
systemctl reload systemd-networkd | systemctl reload systemd-networkd | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 01:48, 10 September 2026
systemctl
| Purpose | Command |
|---|---|
| List |
systemctl -t service
systemctl list-units -t service
|
| Setup |
sudo systemctl enable llama-swap
sudo systemctl disable llama-swap
sudo rm -f /etc/systemd/system/llama-swap.service
sudo systemctl daemon-reload
|
| Monitor |
systemctl status llama-swap
systemctl status llama-swap.service
|
| Control |
systemctl start nginx
systemctl stop nginx
systemctl reload nginx
systemctl reload systemd-networkd
|
Run Level
| Run Level | Description |
|---|---|
| 0 | halt |
| 1 | single user mode |
| 2 | Multi-user, without NFS |
| 3 | Full multi-user mode |
| 4 | unused |
| 5 | X11 |
| 6 | reboot |