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