diff options
Diffstat (limited to 'debian/systemd/ssh.service')
-rw-r--r-- | debian/systemd/ssh.service | 22 |
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] | ||
2 | Description=OpenBSD Secure Shell server | ||
3 | Documentation=man:sshd(8) man:sshd_config(5) | ||
4 | After=network.target auditd.service | ||
5 | ConditionPathExists=!/etc/ssh/sshd_not_to_be_run | ||
6 | |||
7 | [Service] | ||
8 | EnvironmentFile=-/etc/default/ssh | ||
9 | ExecStartPre=/usr/sbin/sshd -t | ||
10 | ExecStart=/usr/sbin/sshd -D $SSHD_OPTS | ||
11 | ExecReload=/usr/sbin/sshd -t | ||
12 | ExecReload=/bin/kill -HUP $MAINPID | ||
13 | KillMode=process | ||
14 | Restart=on-failure | ||
15 | RestartPreventExitStatus=255 | ||
16 | Type=notify | ||
17 | RuntimeDirectory=sshd | ||
18 | RuntimeDirectoryMode=0755 | ||
19 | |||
20 | [Install] | ||
21 | WantedBy=multi-user.target | ||
22 | Alias=sshd.service | ||