summaryrefslogtreecommitdiff
path: root/debian/systemd/ssh.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/systemd/ssh.service')
-rw-r--r--debian/systemd/ssh.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service
new file mode 100644
index 0000000..3df8c64
--- /dev/null
+++ b/debian/systemd/ssh.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=OpenBSD Secure Shell server
+After=network.target auditd.service
+ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
+
+[Service]
+EnvironmentFile=-/etc/default/ssh
+ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=on-failure
+RestartPreventExitStatus=255
+Type=notify
+
+[Install]
+WantedBy=multi-user.target
+Alias=sshd.service