--- rpcbind 2019-02-09 15:04:56.341628000 +0000 +++ rpcbind.new 2019-02-09 14:58:05.135754000 +0000 @@ -13,8 +13,15 @@ desc="Universal addresses to RPC program number mapper" rcvar="rpcbind_enable" command="/usr/sbin/${name}" - +start_precmd='rpcbind_precmd' stop_postcmd='/bin/rm -f /var/run/rpcbind.*' + +# Make sure that we get the correct flags from rc.conf(5). +# +rpcbind_precmd() +{ + rc_flags=${rpcbind_flags} +} load_rc_config $name run_rc_command "$1"