diff options
Diffstat (limited to 'debian/systemd/ssh.service')
-rw-r--r-- | debian/systemd/ssh.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service new file mode 100644 index 000000000..3df8c6426 --- /dev/null +++ b/debian/systemd/ssh.service | |||
@@ -0,0 +1,17 @@ | |||
1 | [Unit] | ||
2 | Description=OpenBSD Secure Shell server | ||
3 | After=network.target auditd.service | ||
4 | ConditionPathExists=!/etc/ssh/sshd_not_to_be_run | ||
5 | |||
6 | [Service] | ||
7 | EnvironmentFile=-/etc/default/ssh | ||
8 | ExecStart=/usr/sbin/sshd -D $SSHD_OPTS | ||
9 | ExecReload=/bin/kill -HUP $MAINPID | ||
10 | KillMode=process | ||
11 | Restart=on-failure | ||
12 | RestartPreventExitStatus=255 | ||
13 | Type=notify | ||
14 | |||
15 | [Install] | ||
16 | WantedBy=multi-user.target | ||
17 | Alias=sshd.service | ||