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.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service
new file mode 100644
index 000000000..3b10e7957
--- /dev/null
+++ b/debian/systemd/ssh.service
@@ -0,0 +1,21 @@
1[Unit]
2Description=OpenBSD Secure Shell server
3After=network.target auditd.service
4ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
5
6[Service]
7EnvironmentFile=-/etc/default/ssh
8ExecStartPre=/usr/sbin/sshd -t
9ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
10ExecReload=/usr/sbin/sshd -t
11ExecReload=/bin/kill -HUP $MAINPID
12KillMode=process
13Restart=on-failure
14RestartPreventExitStatus=255
15Type=notify
16RuntimeDirectory=sshd
17RuntimeDirectoryMode=0755
18
19[Install]
20WantedBy=multi-user.target
21Alias=sshd.service