-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
systemctl.cheat
49 lines (33 loc) · 859 Bytes
/
systemctl.cheat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% systemctl, systemd
# Stop running service
systemctl stop
# Start service
systemctl start
# Restart running service
systemctl restart
# Reload config files for service
systemctl reload
# Reload changed unit files
systemctl daemon-reload
# Show status of service
systemctl status
# Show failed services
systemctl state=failed (or --failed)
# Resets unit(s) with failed state
systemctl reset-failed
# Enable service or unit and allow start on boot
systemctl enable
# Disable service or unit, don’t start at boot
systemctl disable
# Fully disable a unit
systemctl mask
# Reactivate unit again after being masked
systemctl unmask
# Show unit file details
systemctl cat
# Show properties
systemctl show
# Create configuration as drop in unit (extension to primary config)
systemctl edit
# Edit primary unit file for service
systemctl edit --full