Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    1 Posts 1 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      Nachtfalke
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.