Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2023 12:42:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 272282] freebsd-update tries to restart sshd although it is not running
Message-ID:  <bug-272282-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272282

            Bug ID: 272282
           Summary: freebsd-update tries to restart sshd although it is
                    not running
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: tamelingdaniel@gmail.com

I have not enabled sshd and the output of service sshd status is

Cannot 'status' sshd. Set sshd_enable to YES in /etc/rc.conf or use 'onesta=
tus'
instead of 'status'.

But this command evaluates as true:

# if service sshd status >/dev/null 2>/dev/null; then echo "Restarting sshd
after upgrade"; fi
Restarting sshd after upgrade

This is the same code that is used in freebsd-update, which in an update a =
few
days ago then tried to restart sshd. Thus, the update progress contained a =
line
with "Set sshd_enable to YES in /etc/rc.conf or use 'onerestart' instead of
'restart'.", which was confusing.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272282-227>