November 18th, 2001, 02:21 PM
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.
November 18th, 2001, 02:30 PM
>> 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.
November 18th, 2001, 02:37 PM
Ok, thanks! It wasn't executable.