forked from rpms/openssh
1d8ffcfe05
* The services are using ExecPre to start sshd-pre script * The sshd-pre script substitutes token in standard configuration file and writes a new on in /run * The services are using a file in /run as a sshd_config
19 lines
465 B
Desktop File
19 lines
465 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=notify
|
|
EnvironmentFile=-/etc/sysconfig/sshd
|
|
ExecStartPre=/usr/libexec/openssh/sshd-pre
|
|
ExecStart=/usr/sbin/sshd -D $OPTIONS -f /run/openssh/sshd_config
|
|
ExecReload=/usr/libexec/openssh/sshd-pre reload $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=42s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|