summaryrefslogtreecommitdiff
path: root/sshd.service
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-02 01:13:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-02 01:13:25 +0000
commitf38978765535e8c844371dbcd8e2ae1ace135e08 (patch)
tree8f6f73cc41ec340be45959fae67da4c6abec1e21 /sshd.service
parent151bd95e0af0e9382ca9065b0d6cc6d62f1ac794 (diff)
automatic import of opensshopeneuler20.03
Diffstat (limited to 'sshd.service')
-rw-r--r--sshd.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/sshd.service b/sshd.service
new file mode 100644
index 0000000..e8afb86
--- /dev/null
+++ b/sshd.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=OpenSSH server daemon
+Documentation=man:sshd(8) man:sshd_config(5)
+After=network.target sshd-keygen.target
+Wants=sshd-keygen.target
+
+[Service]
+Type=notify
+EnvironmentFile=-/etc/sysconfig/sshd
+ExecStart=/usr/sbin/sshd -D $OPTIONS
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=on-failure
+RestartSec=42s
+
+[Install]
+WantedBy=multi-user.target