diff options
Diffstat (limited to 'system/openssh/sshd.service')
-rw-r--r-- | system/openssh/sshd.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/openssh/sshd.service b/system/openssh/sshd.service new file mode 100644 index 000000000..a541164cd --- /dev/null +++ b/system/openssh/sshd.service @@ -0,0 +1,15 @@ +[Unit] +Description=OpenSSH server daemon +After=network.target auditd.service + +[Service] +ExecStartPre=/usr/bin/ssh-keygen -A +ExecStart=/usr/sbin/sshd -D -e +ExecReload=/bin/kill -HUP $MAINPID +KillMode=process +OOMPolicy=continue +Restart=on-failure +RestartSec=42s + +[Install] +WantedBy=multi-user.target |