summaryrefslogtreecommitdiff
path: root/debian/systemd
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-02-10 14:37:55 +0000
committerColin Watson <cjwatson@debian.org>2014-02-10 14:37:55 +0000
commit11cbb530aa4ca54344eb8941342bfe510f4b981b (patch)
tree3cc6e4aa03bb76121fa1d4f8ee2fbcbdc6cdb5c1 /debian/systemd
parente4c505521f820cadada465ebfa8ff12e3d37feb9 (diff)
Add systemd support (thanks, Sven Joachim; closes: #676830).
Diffstat (limited to 'debian/systemd')
-rw-r--r--debian/systemd/ssh.service15
-rw-r--r--debian/systemd/ssh.socket11
-rw-r--r--debian/systemd/ssh@.service9
-rw-r--r--debian/systemd/sshd.conf1
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..333690bfc
--- /dev/null
+++ b/debian/systemd/ssh.service
@@ -0,0 +1,15 @@
1[Unit]
2Description=OpenBSD Secure Shell server
3After=syslog.target network.target auditd.service
4ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
5
6[Service]
7EnvironmentFile=-/etc/default/ssh
8ExecStartPre=/usr/bin/test -c /dev/null
9ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
10ExecReload=/bin/kill -HUP $MAINPID
11KillMode=process
12Restart=on-failure
13
14[Install]
15WantedBy=multi-user.target
diff --git a/debian/systemd/ssh.socket b/debian/systemd/ssh.socket
new file mode 100644
index 000000000..fa1f615e4
--- /dev/null
+++ b/debian/systemd/ssh.socket
@@ -0,0 +1,11 @@
1[Unit]
2Description=OpenBSD Secure Shell server socket
3Conflicts=ssh.service
4ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
5
6[Socket]
7ListenStream=22
8Accept=yes
9
10[Install]
11WantedBy=sockets.target
diff --git a/debian/systemd/ssh@.service b/debian/systemd/ssh@.service
new file mode 100644
index 000000000..c2f9b1547
--- /dev/null
+++ b/debian/systemd/ssh@.service
@@ -0,0 +1,9 @@
1[Unit]
2Description=OpenBSD Secure Shell server per-connection daemon
3After=auditd.service
4
5[Service]
6EnvironmentFile=-/etc/default/ssh
7ExecStartPre=/usr/bin/test -c /dev/null
8ExecStart=-/usr/sbin/sshd -i $SSHD_OPTS
9StandardInput=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