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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194347 Fernando ApesteguĂa <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Ăa <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 warn "Unable to force ${_depend}. It may already be running." return 1 fi -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194347-227-GFITPs5Qch>
