<div dir="ltr"><div><div><div><div><div><div>I used the following kernel config to build a customer kernel<br><br>platform        pc64<br>machine         x86_64<br>machine_arch    x86_64<br>cpu             HAMMER_CPU<br>ident           lhmwzy<br>
maxusers        0<br>#options        CPU_DISABLE_AVX<br><br><br>options         INET                    #InterNETworking<br>options         HAMMER                  #Hammer Filesystem<br>options         NULLFS                  #NULL filesystem<br>
options         FFS                     #Berkeley Fast Filesystem<br>options         FFS_ROOT                #FFS usable as root device [keep this!]<br>options         SOFTUPDATES             #Enable FFS soft updates support<br>
options         UFS_DIRHASH             #Improve performance on big directories<br>options         MFS                     #Memory Filesystem<br>options         TMPFS                   #Temporary Filesystem<br>options         MD_ROOT                 #MD is a potential root device<br>
options         NFS                     #Network Filesystem<br>options         NFS_ROOT                #NFS usable as root device, NFS required<br>options         MSDOSFS                 #MSDOS Filesystem<br>options         CD9660                  #ISO 9660 Filesystem<br>
options         PROCFS                  #Process filesystem<br>#options        COMPAT_43               #Compatible with BSD 4.3<br>options         SCSI_DELAY=5000         #Delay (in ms) before probing SCSI<br>options         IFPOLL_ENABLE           # Support mixed interrupt-polling<br>
                                        # handling of network device drivers<br>options         UCONSOLE                #Allow users to grab the console<br>options         KTRACE                  #ktrace(1) support<br>options         SYSVSHM                 #SYSV-style shared memory<br>
options         SYSVMSG                 #SYSV-style message queues<br>options         SYSVSEM                 #SYSV-style semaphores<br>options         P1003_1B                #Posix P1003_1B real-time extensions<br>options         _KPOSIX_PRIORITY_SCHEDULING<br>
options         ICMP_BANDLIM            #Rate limit bad replies<br>options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev<br>options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug<br>                                        # output.  Adds ~128k to driver.<br>
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug<br>                                        # output.  Adds ~215k to driver.<br>options         DSCHED_FQ               # Fair-queuing disk scheduler<br>
<br># ALTQ<br>options         ALTQ            #alternate queueing<br>options         ALTQ_CBQ        #class based queueing<br>options         ALTQ_RED        #random early detection<br>options         ALTQ_RIO        #triple red for diffserv (needs RED)<br>
options         ALTQ_HFSC       #hierarchical fair service curve<br>options         ALTQ_PRIQ       #priority queue<br>options         ALTQ_FAIRQ      #fair queueing<br>#options        ALTQ_NOPCC      #don't use processor cycle counter<br>
#options        ALTQ_DEBUG      #for debugging<br><br># Debugging for Development<br>options         DDB<br>options         DDB_TRACE<br>options         INVARIANTS<br><br>device          isa<br>device          pci<br><br>
# AHCI driver, this will override NATA for AHCI devices,<br># both drivers may be included.<br>#<br>device          ahci<br><br><br># NEW-ATA (NATA) and ATAPI devices<br>#<br>device          nata<br>device          natadisk                # ATA disk drives<br>
device          natapicd                # ATAPI CDROM drives<br>device          natapifd                # ATAPI floppy drives<br>device          natapist                # ATAPI tape drives<br>device          natapicam               # Emulate ATAPI devices as SCSI<br>
device          nataraid                # support for ATA software RAID<br>                                        # controllers<br>device          natausb                 # ATA-over-USB support<br>options         ATA_STATIC_ID           # Static device numbering<br>
<br><br># SCSI peripherals<br>device          mpt<br>device          scbus           # SCSI bus (required)<br>device          da              # Direct Access (disks)<br>device          cd              # CD<br>device          pass            # Passthrough device (direct SCSI access)<br>
device          sg              # Passthrough device (linux scsi generic)<br><br><br># VirtIO support<br>device          virtio          # VirtIO core<br>device          virtio_blk      # VirtIO disk driver<br>device          virtio_pci      # VirtIO transport over PCI bus<br>
<br># atkbdc0 controls both the keyboard and the PS/2 mouse<br>device          atkbdc0 at isa? port IO_KBD<br>device          atkbd0  at atkbdc? irq 1 flags 0x1<br>device          psm0    at atkbdc? irq 12<br><br>device          vga0    at isa?<br>
<br># kbdmux is the keyboard multiplexer<br>device          kbdmux<br><br># splash screen/screen saver<br>pseudo-device   splash<br># syscons is the default console driver, resembling an SCO console<br>device          sc0     at isa? flags 0x100<br>
options         SC_PIXEL_MODE           # add support for the raster text mode<br><br>device          agp             # support several AGP chipsets<br><br><br><br>device          em              # Intel PRO/1000 adapter Gigabit Ethernet Card (``Wiseman'')<br>
                                # Requires ig_hal<br>                                # Requires ig_hal<br>device          ig_hal          # Intel PRO/1000 hardware abstraction layer<br><br><br>device          miibus          # MII bus support<br>
<br><br># Pseudo devices - the number indicates how many units to allocate.<br>pseudo-device   loop            # Network loopback<br>pseudo-device   ether           # Ethernet support<br>pseudo-device   sl      1       # Kernel SLIP<br>
pseudo-device   tun             # Packet tunnel.<br>pseudo-device   pty             # Pseudo-ttys (telnet etc)<br>pseudo-device   md              # Memory "disks"<br><br># CARP support<br>options         CARP<br>
pseudo-device   carp<br><br># The `bpf' pseudo-device enables the Berkeley Packet Filter.<br># Be aware of the administrative consequences of enabling this!<br>pseudo-device   bpf             #Berkeley packet filter<br>
<br>pseudo-device   crypto          # core crypto support, used by wlan<br># FireWire support<br>device          firewire        # FireWire bus code<br>device          sbp             # SCSI over FireWire (Requires scbus and da)<br>
device          fwe             # Ethernet over FireWire (non-standard!)<br><br><br></div>As you can see,I removed all usb related things.<br><br></div>I have solved the problem as following:<br></div>remove usbd from /etc/rc.d<br>
<br><br></div><div>But I still confused why the issue would happen.<br><br>the script name "openresty" I put in /usr/local/etc/rc.d/<br><br>#!/bin/sh<br>#<br># PROVIDE: openresty<br># REQUIRE: LOGIN<br># KEYWORD: shutdown<br>
<br>#<br># Add the following line to /etc/rc.conf to enable :<br># openresty_enable="YES"<br>#<br><br>. /etc/rc.subr<br><br>name="openresty"<br>rcvar=openresty_enable<br><br>load_rc_config "$name"<br>
<br>: ${openresty_enable="NO"}<br><br><br>command="/usr/local/openresty/nginx/sbin/nginx"<br>pidfile="/usr/local/openresty/nginx/logs/nginx.pid"<br><br>required_files="/usr/local/openresty/nginx/conf/nginx.conf"<br>
<br><br>run_rc_command "$1"<br><br><br></div><div>When run "rcrun start openresty",then the error:<br>openresty depends on usbd, current state:<br></div><div><br><br></div>I have seen the code In the rcrun script :<br>
...<br>    for i in $@; do<br>        case X`varsym -s -q rcng_$i` in<br>        Xrunning*)<br>            echo "$i has already been started"<br>            ;;<br>        Xconfigured*)<br>            echo "$i has already been configured"<br>
            ;;<br>        *)<br>            _return=0<br>            buildrclist $i<br>            for j in $rclist; do<br>                need=1<br>                for k in `rcorder -p $j`; do<br>                    if [ $k = $i ]; then<br>
                        need=0<br>                    else<br>                        state=`varsym -s -q rcng_$k`<br>                        case X$state in<br>                        Xrunning*|Xconfigured*|Xirrelevant*|Xdisabled*)<br>
                            ;;<br>                        *)<br>                            echo "$i depends on $k, current state: $state"<br>                            _return=1<br>                            ;;<br>
                        esac<br>                    fi<br>                done<br>            done<br>.....<br></div>So I removed usbd from /etc/rc.d/ and no errors,everything go well.<br><br></div>So rcrun <span id="result_box" class="" lang="en"><span class=""></span> <span class="">needs to be improved?</span></span><div>
<div><br><div><div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-22 21:17 GMT+08:00 Sascha Wildner <span dir="ltr"><<a href="mailto:saw@online.de" target="_blank">saw@online.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, 21 Mar 2014 06:51:14 +0100, lhmwzy <<a href="mailto:lhmwzy@gmail.com" target="_blank">lhmwzy@gmail.com</a>> wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Under 3.6.1,I build a customer kernel and disable usb.<br>
</blockquote>
<br></div>
Can you be more specific about how you disabled it?<br>
<br>
Regards,<br>
Sascha<br>
</blockquote></div><br></div>