hi all, im new to freeBSD. ive been using linux( mostly redhat and mandrake, and slackware) , lately i have moved to unix. i have a few things to be cleared what are the startup script files that get executed during boot? httpd gets started automatically in the system i work. i tired searching /etc/rc.conf , but i couldnt find an entry for httpd. is there any other startup script? regrds, Ananth.G
ananth_G wrote:>hi all, >im new to freeBSD. ive been using linux( mostly redhat and mandrake, and >slackware) , lately i have moved to unix. >i have a few things to be cleared > >what are the startup script files that get executed during boot? >httpd gets started automatically in the system i work. i tired searching >/etc/rc.conf , but i couldnt find an entry for httpd. is there any other >startup script? > >regrds, >Ananth.G > > >_______________________________________________ >freebsd-stable@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-stable >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > >Most usually, all the start up scripts are going to be locatd inthe "/usr/local/etc/rc.d" directory. I've noticed that most programs installed via ports has the startup script there. Also, be aware that most commonly the program will need to be enabled via the "/etc/rc.conf". eg... 'enabe_apache="YES"..... Just be sure to keep an eye out on "/usr/ports/UPDATING" and after you install a program via ports, read the startup script on "/usr/local/etc/rc.d". Michael -- Michael D. Whities uidzero@one-arm.com http://www.one-arm.com -- There are four colors of hats to watch for: Black, White, Grey, and Red. The meanings are: Cracker, Hacker, Guru, and Victim.
On Fri, Jul 16, 2004 at 06:14:00PM +0530, ananth_G wrote:> hi all, > im new to freeBSD. ive been using linux( mostly redhat and mandrake, and > slackware) , lately i have moved to unix. > i have a few things to be cleared > > what are the startup script files that get executed during boot? > httpd gets started automatically in the system i work. i tired searching > /etc/rc.conf , but i couldnt find an entry for httpd. is there any other > startup script?/etc/rc.conf is the configuration file for the system. /usr/local/etc/rc.d is the startup-scripts directory for locally installed ports / packages. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
On Fri, Jul 16, 2004 at 06:14:00PM +0530, ananth_G wrote:> im new to freeBSD. ive been using linux( mostly redhat and mandrake, and > slackware) , lately i have moved to unix.> what are the startup script files that get executed during boot? > httpd gets started automatically in the system i work. i tired searching > /etc/rc.conf , but i couldnt find an entry for httpd. is there any other > startup script?As a start, you might like to look at the FreeBSD handbook, available via web and also in some other formats (eg pdf). Further readings: -> www.freebsd.org, www.daemonnews.org, www.google.com/bsd Have a look at: - /etc/rc which will run all the configuration scripts (/etc/rc.*) according to their dependencies. - programs from userland usually have a start script located at /usr/local/etc/rc.d/ see http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/configtuning-starting-services.html - if you install a program from the ports, eg # cd /usr/ports/www/apache13-modssl # make package # make clean it will install a start script in /usr/local/etc/rc.d/ automagically (eg "<startscript.sh>.sample") - to get all packages in one directory, you should create /usr/ports/packages/All/ as root before creating them - you might consider installing /usr/ports/sysutils/portupgrade - to cvsup, you need to install cvsup. best for starters is to get a precompiled package from ftp.freebsd.org instead of compiling it from ports (/usr/ports/net/cvsup-without-gui) Precompiled packages can be installed via pkg_add. Packages can be deletev dia pkg_delete. Installed port can be upgraded via portupgrade. More info about installed packages is available via pkg_info. - read the manpages. they are there for a reason :-) - for upgrading / configuring your kernel/system, read the handbook. http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/synching.html I usually go with # cd /usr/src # make update (if connected to the internet, cvsup installed) # make -j8 buildworld # make buildkernel KERNCONF=MYCONFIG => see /usr/src/sys/i386/conf/GENERIC and LINT # make installkernel KERNCONF=MYCONFIG # reboot (boot to singleuser!) # mergemaster -p # make installworld # mergemaster # reboot Have I mentioned reading the handbook? Regards, Holger Kipp
Edwin Groothuis <edwin@mavetju.org> writes:> On Fri, Jul 16, 2004 at 06:14:00PM +0530, ananth_G wrote: > > hi all, > > im new to freeBSD. ive been using linux( mostly redhat and mandrake, and > > slackware) , lately i have moved to unix. > > i have a few things to be cleared > > > > what are the startup script files that get executed during boot? > > httpd gets started automatically in the system i work. i tired searching > > /etc/rc.conf , but i couldnt find an entry for httpd. is there any other > > startup script? > > /etc/rc.conf is the configuration file for the system. > > /usr/local/etc/rc.d is the startup-scripts directory for locally > installed ports / packages.If the port has been converted to rcNG, there should be switch for it in /etc/rc.conf. For example, here is pkg_message from the apache13 port: ===> BE CAREFULL HOW TO BOOT on 1.3.29_4 or after: To run apache www server from startup, add apache_enable="YES" in your /etc/rc.conf. For ports that are still configured in the old way, you will typically find a sample script in /usr/local/etc/rc.d, and then need to rename and/or make it executable. -- Dan Pelleg
On Fri, 2004-07-16 at 05:44, ananth_G wrote:> hi all, > im new to freeBSD. ive been using linux( mostly redhat and mandrake, and > slackware) , lately i have moved to unix. > i have a few things to be cleared > > what are the startup script files that get executed during boot? > httpd gets started automatically in the system i work. i tired searching > /etc/rc.conf , but i couldnt find an entry for httpd. is there any other > startup script? > > regrds, > Ananth.GWell, for "newbie" questions, you'll have better luck on freebsd-questions@freebsd.org. However, you will find that MOST of the startup scripts for ported applications reside in either ${LOCALBASE}/etc/rc.d (where LOCALBASE usually equals /usr/local) or ${X11BASE}/etc/rc.d (where X11BASE usually equals /usr/X11R6). Sometimes the port will install the script with ".sample" prepended--this will have to be removed before the port will start. Be advised that, if you are running -CURRENT, there are significant issues with /etc/rc.d/localpkg at the moment . . .. jmc -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20040716/b58b86db/attachment.bin