diff options
Diffstat (limited to 'debian/systemd')
-rw-r--r-- | debian/systemd/ssh.service | 15 | ||||
-rw-r--r-- | debian/systemd/ssh.socket | 12 | ||||
-rw-r--r-- | debian/systemd/ssh@.service | 8 | ||||
-rw-r--r-- | debian/systemd/sshd.conf | 1 |
4 files changed, 36 insertions, 0 deletions
diff --git a/debian/systemd/ssh.service b/debian/systemd/ssh.service new file mode 100644 index 000000000..ff28d39c1 --- /dev/null +++ b/debian/systemd/ssh.service | |||
@@ -0,0 +1,15 @@ | |||
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 | |||
13 | [Install] | ||
14 | WantedBy=multi-user.target | ||
15 | Alias=sshd.service | ||
diff --git a/debian/systemd/ssh.socket b/debian/systemd/ssh.socket new file mode 100644 index 000000000..5a766dcab --- /dev/null +++ b/debian/systemd/ssh.socket | |||
@@ -0,0 +1,12 @@ | |||
1 | [Unit] | ||
2 | Description=OpenBSD Secure Shell server socket | ||
3 | Before=ssh.service | ||
4 | Conflicts=ssh.service | ||
5 | ConditionPathExists=!/etc/ssh/sshd_not_to_be_run | ||
6 | |||
7 | [Socket] | ||
8 | ListenStream=22 | ||
9 | Accept=yes | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=sockets.target | ||
diff --git a/debian/systemd/ssh@.service b/debian/systemd/ssh@.service new file mode 100644 index 000000000..4b0801dbc --- /dev/null +++ b/debian/systemd/ssh@.service | |||
@@ -0,0 +1,8 @@ | |||
1 | [Unit] | ||
2 | Description=OpenBSD Secure Shell server per-connection daemon | ||
3 | After=auditd.service | ||
4 | |||
5 | [Service] | ||
6 | EnvironmentFile=-/etc/default/ssh | ||
7 | ExecStart=-/usr/sbin/sshd -i $SSHD_OPTS | ||
8 | StandardInput=socket | ||
diff --git a/debian/systemd/sshd.conf b/debian/systemd/sshd.conf new file mode 100644 index 000000000..ab7302189 --- /dev/null +++ b/debian/systemd/sshd.conf | |||
@@ -0,0 +1 @@ | |||
d /var/run/sshd 0755 root root | |||