mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
freebsd-update: restart sshd after upgrade
Sometimes the parent-child sshd protocol changes during an upgrade, and when this happens sshd will not accept new connections until it is restarted. PR: 263489 Reviewed by: kevans, gjb MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35109
This commit is contained in:
parent
b7f53cdcf8
commit
6cd1bc5316
1 changed files with 8 additions and 0 deletions
|
|
@ -3023,6 +3023,14 @@ Kernel updates have been installed. Please reboot and run
|
|||
install_from_index INDEX-NEW || return 1
|
||||
install_delete INDEX-OLD INDEX-NEW || return 1
|
||||
|
||||
# Restart sshd if running (PR263489). Note that this does not
|
||||
# affect child sshd processes handling existing sessions.
|
||||
if service sshd status >/dev/null 2>/dev/null; then
|
||||
echo
|
||||
echo "Restarting sshd after upgrade"
|
||||
service sshd restart
|
||||
fi
|
||||
|
||||
# Rehash certs if we actually have certctl installed.
|
||||
if which certctl>/dev/null; then
|
||||
env DESTDIR=${BASEDIR} certctl rehash
|
||||
|
|
|
|||
Loading…
Reference in a new issue