m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/systemd.md
blob: 3c1a1a8a4c96c2b8e617f6f4d3c9d0e2ca74e817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Systemd control

## Unit files

Find unit file for given service:

    systemctl status <service>

After editing unit file, need to reload wih

    systemctl daemon-reload

### Drop-in editing

Drop-ins will be in `/etc/systemd/system/<service>.d/`. Edit with

    systemctl edit <service> --drop-in=<drop-in name>

## Logs

    journalctl -u <service>