Thread: Auto Startup

    #1
  1. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13

    Auto Startup


    Hi, I was wondering how I get something to automatically start up when the computer starts. I've never really played around with this but I installed proftpd. This is on a freebsd machine and it put the proftpd.sh in /usr/local/etc/rc.d/ and the proftpd.conf in /usr/local/etc/. Thanks for the help! I just hate starting up the machine then having to run sh proftpd.sh start every single time because sometimes I forget.
    -MattWil
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> then having to run sh proftpd.sh start every single time

    1) Make sure /usr/local/etc/rc.d/proftpd.sh is executable
    2) Make sure it's named proftpd.sh, not proftpd.sh.sample.

    Keep in mind, unless you explicitly override it in /etc/rc.conf, there is a line local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" in your /etc/defaults/rc.conf, which is the additional path for you to place your startup scripts.
    Under no circumstances should you alter anything in /etc/defaults/rc.conf. If you need to override some of the default values in /etc/defaults/rc.conf, do it in /etc/rc.conf at all time.

    Just so you know, FreeBSD doesn't have a good rc mechanism. NetBSD has a better one and I am sure sooner or later FreeBSD will implement it.
  4. #3
  5. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13
    Ok, thanks! It wasn't executable.
    -MattWil

IMN logo majestic logo threadwatch logo seochat tools logo