Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rh124_systemd [2026/10/20 16:16] – [RH1245 systemd] rpjday | rh124_systemd [2026/10/30 10:19] (current) – [More] rpjday | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ===== systemd packages ===== | ||
| + | |||
| + | < | ||
| + | $ rpm -qa " | ||
| + | systemd-libs-257-23.el10_2.1.alma.1.x86_64 | ||
| + | rpm-plugin-systemd-inhibit-4.19.1.1-23.el10.alma.1.x86_64 | ||
| + | systemd-pam-257-23.el10_2.1.alma.1.x86_64 | ||
| + | systemd-257-23.el10_2.1.alma.1.x86_64 | ||
| + | python3-systemd-235-11.el10.x86_64 | ||
| + | systemd-udev-257-23.el10_2.1.alma.1.x86_64 | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ===== Start, stop and status check ===== | ||
| + | |||
| + | < | ||
| + | $ systemctl status sshd.service | ||
| + | $ sudo systemctl stop sshd.service | ||
| + | $ sudo systemctl start sshd.service | ||
| + | </ | ||
| + | |||
| + | ===== Enable and disable ===== | ||
| + | |||
| + | < | ||
| + | $ systemctl disable sshd.service | ||
| + | $ systemctl enable sshd.service | ||
| + | </ | ||
| + | |||
| + | ===== / | ||
| + | |||
| + | < | ||
| + | [Unit] | ||
| + | Description=OpenSSH server daemon | ||
| + | Documentation=man: | ||
| + | After=network.target sshd-keygen.target | ||
| + | Wants=sshd-keygen.target | ||
| + | # Migration for Fedora 38 change to remove group ownership for standard host keys | ||
| + | # See https:// | ||
| + | Wants=ssh-host-keys-migration.service | ||
| + | |||
| + | [Service] | ||
| + | Type=notify | ||
| + | EnvironmentFile=-/ | ||
| + | ExecStart=/ | ||
| + | ExecReload=/ | ||
| + | KillMode=process | ||
| + | Restart=on-failure | ||
| + | RestartSec=42s | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | ===== More ===== | ||
| + | |||
| + | < | ||
| + | $ systemctl --type help | ||
| + | $ systemctl list-units --type=target | ||
| + | $ systemctl get-default | ||
| + | </ | ||
| + | |||
| + | How to add a " | ||
| + | |||
| + | < | ||
| + | $ systemctl edit sshd.service | ||
| + | </ | ||