Root: /usr/local/etc/rc.d/svscan.sh: WARNING: /var/run/service is not a directo



  • Hi,

    I recognized this message in syslog:

    	root: /usr/local/etc/rc.d/svscan.sh: WARNING: /var/run/service is not a directory.
    

    After this, I just modified the svscan.sh like this:

    #!/bin/sh
    
    # PROVIDE: svscan
    # REQUIRE: LOGIN
    # KEYWORD: FreeBSD
    
    . /etc/rc.subr
    [b]mkdir /var/run/service[/b]
    
    name="svscan"
    rcvar=`set_rcvar`
    command="/usr/local/bin/svscan"
    svscan_enable=${svscan_enable-"YES"}
    svscan_servicedir=${svscan_servicedir-"/var/run/service"}
    
    

    I am NOT a programmer. I don't know, what this file makes and so on but this fixed the "error" for me on my box with snapshot 2.0-RC1 (i386) built on Mon Feb 28 18:12:00 EST 2011.

    Hope this helps


Log in to reply