mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-26 04:50:18 +01:00
18 lines
392 B
Text
18 lines
392 B
Text
|
[Unit]
|
||
|
Description=OpenBSD Secure Shell server
|
||
|
|
||
|
[Service]
|
||
|
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
|
||
|
Type=notify
|
||
|
RuntimeDirectory={{ sshd_binary }}
|
||
|
RuntimeDirectoryMode=0755
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|