diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-21 16:48:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 16:48:58 +0100 |
commit | bd1b8cb60a0e41fac3790a9cc4b20a90566005fb (patch) | |
tree | 6353962e5e9341bcb170e0ef8c9c23664ee4d1ff /data | |
parent | 1d3761114270a6c7f6ec61a134352b04f1fbd8d9 (diff) | |
parent | 10b5c5bc93f5d9bb99c5523f41a97d49a833a453 (diff) | |
download | vyos-build-bd1b8cb60a0e41fac3790a9cc4b20a90566005fb.tar.gz vyos-build-bd1b8cb60a0e41fac3790a9cc4b20a90566005fb.zip |
Merge pull request #474 from indrajitr/cleanup-openssh
ssh: T5841: Remove ssh-session-cleanup.service
Diffstat (limited to 'data')
3 files changed, 0 insertions, 25 deletions
diff --git a/data/live-build-config/hooks/live/18-enable-disable_services.chroot b/data/live-build-config/hooks/live/18-enable-disable_services.chroot index 4dc880ca..08404a62 100755 --- a/data/live-build-config/hooks/live/18-enable-disable_services.chroot +++ b/data/live-build-config/hooks/live/18-enable-disable_services.chroot @@ -76,7 +76,6 @@ systemctl disable dpkg-db-backup.service systemctl disable zabbix-agent2.service echo I: Enabling services -systemctl enable ssh-session-cleanup.service systemctl enable vyos-hostsd.service systemctl enable acpid.service systemctl enable vyos-router.service diff --git a/data/live-build-config/includes.chroot/lib/systemd/system/ssh-session-cleanup.service b/data/live-build-config/includes.chroot/lib/systemd/system/ssh-session-cleanup.service deleted file mode 100644 index b8672722..00000000 --- a/data/live-build-config/includes.chroot/lib/systemd/system/ssh-session-cleanup.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=OpenBSD Secure Shell session cleanup -Wants=network.target -After=network.target - -[Service] -ExecStart=/bin/true -ExecStop=/usr/lib/openssh/ssh-session-cleanup -RemainAfterExit=yes -Type=oneshot - -[Install] -WantedBy=multi-user.target diff --git a/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup b/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup deleted file mode 100755 index f283cc96..00000000 --- a/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh - -ssh_session_pattern='sshd: \S.*@pts/[0-9]+' - -IFS="$IFS@" -pgrep -a -f "$ssh_session_pattern" | while read pid daemon user pty; do - echo "Found ${daemon%:} session $pid on $pty; sending SIGTERM" - kill "$pid" || true -done - -exit 0 |