mirror of
https://abf.rosa.ru/djam/openssh.git
synced 2025-02-24 10:13:00 +00:00
21 lines
608 B
Desktop File
21 lines
608 B
Desktop File
[Unit]
|
|
Description=OpenSSH server daemon
|
|
Documentation=man:sshd(8) man:sshd_config(5)
|
|
After=network.target sshd-keygen.service
|
|
Wants=sshd-keygen.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/sysconfig/sshd
|
|
ExecStart=/usr/sbin/sshd -D $OPTIONS
|
|
# Expose correct sshd port via Avahi
|
|
ExecStartPost=-/usr/sbin/openssh-avahi-helper mk_avahi_service
|
|
# We don't want to expose SSH server via Avahi
|
|
# when openssh.service is not running
|
|
ExecStopPost=-/usr/sbin/openssh-avahi-helper poststop_cleanup
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=42s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|