Date: Sun, 01 Oct 2017 06:13:29 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-rc@FreeBSD.org Subject: [Bug 216115] service -e showing sendmail enabled when it is not Message-ID: <bug-216115-4805-jeDZBcXFGJ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-216115-4805@https.bugs.freebsd.org/bugzilla/> References: <bug-216115-4805@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=216115 Alex Kozlov <ak@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ak@FreeBSD.org --- Comment #6 from Alex Kozlov <ak@FreeBSD.org> --- /etc/rc.subr checks: 933 if [ -n "$_pidcmd" ]; then 934 _keywords="${_keywords} status poll" 935 fi but a few lines above $_pidcmd set to: 928 if [ -n "$pidfile" ]; then 929 _pidcmd='rc_pid=$(check_pidfile '"$pidfile $_procname $command_interpreter"')' 930 else 931 _pidcmd='rc_pid=$(check_process '"$_procname $command_interpreter"')' fi so line 933 condition is always true: [ -n 'rc_pid=$(check_pidfile /var/run/sendmail.pid /usr/sbin/sendmail )' ] and status and poll commands are always added to keywords. This should help: Index: /etc/rc.subr @@ -930,7 +930,7 @@ else _pidcmd='rc_pid=$(check_process '"$_procname $command_interpreter"')' fi - if [ -n "$_pidcmd" ]; then + if [ -n "$(eval "$_pidcmd")" ]; then _keywords="${_keywords} status poll" fi fi -- 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-216115-4805-jeDZBcXFGJ>
