diff options
author | Colin Watson <cjwatson@debian.org> | 2016-07-22 16:51:08 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-07-22 16:51:08 +0100 |
commit | b66f1de1c94fcf912b3a1bc0cd73c3b73cdae8a1 (patch) | |
tree | 76bc05af9b826471b6c1af83ccf9ba572e9e05d3 /debian/systemd/ssh-session-cleanup.service | |
parent | 4e620d6d9ebe0eda9ceddb28134d1fc465dd925c (diff) |
Add a session cleanup script and a systemd unit file to trigger it, which serves to terminate SSH sessions cleanly if systemd doesn't do that itself, often because libpam-systemd is not installed (thanks, Vivek Das Mohapatra, Tom Hutter, and others; closes: #751636).
Diffstat (limited to 'debian/systemd/ssh-session-cleanup.service')
-rw-r--r-- | debian/systemd/ssh-session-cleanup.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/systemd/ssh-session-cleanup.service b/debian/systemd/ssh-session-cleanup.service new file mode 100644 index 000000000..b86727227 --- /dev/null +++ b/debian/systemd/ssh-session-cleanup.service | |||
@@ -0,0 +1,13 @@ | |||
1 | [Unit] | ||
2 | Description=OpenBSD Secure Shell session cleanup | ||
3 | Wants=network.target | ||
4 | After=network.target | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/bin/true | ||
8 | ExecStop=/usr/lib/openssh/ssh-session-cleanup | ||
9 | RemainAfterExit=yes | ||
10 | Type=oneshot | ||
11 | |||
12 | [Install] | ||
13 | WantedBy=multi-user.target | ||