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