summaryrefslogtreecommitdiff
path: root/net-misc/openssh/files/sshd.service
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/openssh/files/sshd.service')
-rw-r--r--net-misc/openssh/files/sshd.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/openssh/files/sshd.service b/net-misc/openssh/files/sshd.service
new file mode 100644
index 00000000..b5e96b3a
--- /dev/null
+++ b/net-misc/openssh/files/sshd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSSH server daemon
+After=syslog.target network.target auditd.service
+
+[Service]
+ExecStartPre=/usr/bin/ssh-keygen -A
+ExecStart=/usr/sbin/sshd -D -e
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target