Date: Tue, 24 Jan 2023 14:32:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 194347] Return an error when rc service is not enabled Message-ID: <bug-194347-227-GFITPs5Qch@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194347-227@https.bugs.freebsd.org/bugzilla/> References: <bug-194347-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194347 Fernando Apestegu=C3=ADa <fernape@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |fernape@FreeBSD.org Status|New |Closed CC| |fernape@FreeBSD.org Resolution|--- |Works As Intended --- Comment #1 from Fernando Apestegu=C3=ADa <fernape@FreeBSD.org> --- rc is returning 0 because rc is not failing. This is one of the possible outputs considered by the rc script and it is not an error. Compare that with this piece of code in which a force start is issued but somehow (the script doesn't know why), it fails: if ! /etc/rc.d/${_depend} forcestart; then=20 warn "Unable to force ${_depend}. It may already be running= ." return 1 fi --=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-194347-227-GFITPs5Qch>