5489ace8dc
* PartOf is needed to trigger sshd-keygen checks for sshd.service restarts * sshd-keygen.target makes a level of abstraction to eliminate dupplicate dependencies on both sshd and sshd@ services
19 lines
396 B
Desktop File
19 lines
396 B
Desktop File
[Unit]
|
|
Description=OpenSSH server daemon
|
|
Documentation=man:sshd(8) man:sshd_config(5)
|
|
After=network.target sshd-keygen.target
|
|
Wants=sshd-keygen.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=/var/run/sshd.pid
|
|
EnvironmentFile=-/etc/sysconfig/sshd
|
|
ExecStart=/usr/sbin/sshd $OPTIONS
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=42s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|