2018-08-25 23:39:06 +02:00
|
|
|
[Unit]
|
|
|
|
Description=OpenBSD Secure Shell server
|
2022-09-26 16:43:15 +02:00
|
|
|
Documentation=man:sshd(8) man:sshd_config(5)
|
2018-08-25 23:39:06 +02:00
|
|
|
|
|
|
|
[Service]
|
2022-09-26 16:43:15 +02:00
|
|
|
Type=notify
|
2018-08-25 23:39:06 +02:00
|
|
|
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
|
2022-09-26 16:43:15 +02:00
|
|
|
RuntimeDirectory={{ __sshd_runtime_directory }}
|
|
|
|
RuntimeDirectoryMode={{ __sshd_runtime_directory_mode }}
|
2018-08-25 23:39:06 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|