https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216115

Alex Kozlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Alex Kozlov <[email protected]> ---
/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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-rc
To unsubscribe, send any mail to "[email protected]"

Reply via email to