mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-24 20:10:20 +01:00
20 lines
539 B
Django/Jinja
20 lines
539 B
Django/Jinja
[Unit]
|
|
Description=OpenBSD Secure Shell server
|
|
Documentation=man:sshd(8) man:sshd_config(5)
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStartPre={{ sshd_binary }} -t
|
|
ExecStart={{ sshd_binary }} -D -f {{ sshd_config_file }}
|
|
ExecReload={{ sshd_binary }} -t
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=255
|
|
{% if __sshd_runtime_directory is not none %}
|
|
RuntimeDirectory={{ __sshd_runtime_directory }}
|
|
RuntimeDirectoryMode={{ __sshd_runtime_directory_mode }}
|
|
{% endif %}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|