Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
Anthony Atkielski wrote: I installed Apache 2.0.52 on my fresh reinstallation of FreeBSD 5.3, but I can't figure out how the new rc.conf system works. How do I set things up so I can start Apache in rc.conf? I installed Apache directly from the downloaded source rather than from the ports, so this wasn't done automatically. Yes. Delete the version of Apache2 you installed yourself, and install it from ports, remembering to add 'apache2_enable=YES' to /etc/rc.conf. The ports version contains all of the required rc.d scripts to get itself started automatically on bootup. The standard distribution doesn't. That's why they call them ports, you know; because the software is /ported/ onto FreeBSD incorporating all necessary changes to make them work the FreeBSD way, and so you don't have to keep redoing all that stuff yourself. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 8 Dane Court Manor School Rd PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone Tel: +44 1304 617253 Kent, CT14 0JL UK signature.asc Description: OpenPGP digital signature
Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
Joshua Lokken writes: JL # cat /usr/local/etc/rc.d/000.apache2libs.sh [...] Thanks. I couldn't get that to work, either. After trying several things, I finally copied the moused script and modified that, and cooked up something that seems to work. So I guess the problem is solved, even if it's not very elegant. -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
Bill Moran writes: BM http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html BM BM Unfortunatly, this document doesn't fully explain how /usr/local/etc/rc.d BM has changed, but it's a good start nonetheless. More can be gleaned BM by following the links to other man pages, and reading the various BM /etc/rc scripts themselves. I've looked at this and lots of other stuff, and I've tried lots of things, and I still can't get it to work. Any chance that someone who has a working rc configuration for starting Apache 2.x automatically could show me what to place in which files, so I can build them myself? Supposedly the ports version of the product sets up these files. -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
On Tue, 28 Dec 2004 22:30:13 +0100, Anthony Atkielski [EMAIL PROTECTED] wrote: Bill Moran writes: BM http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html BM BM Unfortunatly, this document doesn't fully explain how /usr/local/etc/rc.d BM has changed, but it's a good start nonetheless. More can be gleaned BM by following the links to other man pages, and reading the various BM /etc/rc scripts themselves. I've looked at this and lots of other stuff, and I've tried lots of things, and I still can't get it to work. Any chance that someone who has a working rc configuration for starting Apache 2.x automatically could show me what to place in which files, so I can build them myself? Supposedly the ports version of the product sets up these files. I have apache2 working fine on FreeBSD 5.2.1-RELEASE-p13. In /etc/rc.conf I have a line that reads: apache2_enable=YES and in /usr/local/etc/rc.d, I have: -rwxr-x--x 1 root wheel 183 Dec 28 13:55 000.apache2libs.sh -rwxr-x--x 1 root wheel 2047 Dec 28 13:55 apache2.sh Apache2 starts normally at boot time. -- Joshua Lokken Open Source Advocate ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
Joshua Lokken writes: JL I have apache2 working fine on FreeBSD 5.2.1-RELEASE-p13. JL In /etc/rc.conf I have a line that reads: JL JL apache2_enable=YES JL JL and in /usr/local/etc/rc.d, I have: JL JL -rwxr-x--x 1 root wheel 183 Dec 28 13:55 000.apache2libs.sh JL -rwxr-x--x 1 root wheel 2047 Dec 28 13:55 apache2.sh JL JL Apache2 starts normally at boot time. Thanks ... but what exactly do these two .sh files contain? -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
On Tue, 28 Dec 2004 23:43:08 +0100, Anthony Atkielski [EMAIL PROTECTED] wrote: Thanks ... but what exactly do these two .sh files contain? # cat /usr/local/etc/rc.d/000.apache2libs.sh case $1 in start) /sbin/ldconfig -m /usr/local/lib/apache2 ;; stop) ;; *) echo echo Usage: `basename $0` { start | stop } echo exit 64 ;; esac # cat /usr/local/etc/rc.d/apache2.sh # # $FreeBSD: ports/www/apache2/files/apache.sh,v 1.10 2004/11/13 18:23:34 clement Exp $ # # PROVIDE: apache2 # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: FreeBSD shutdown # # Add the following lines to /etc/rc.conf to enable apache2: # apache2_enable (bool): Set to NO by default. # Set it to YES to enable apache2 # apache2ssl_enable (bool): Set to NO by default. # Set it to YES to start apache with SSL # (if IfDefined SSL exists in httpd.conf) # apache2limits_enable (bool):Set to NO by default. # Set it to yes to run `limits $limits_args` # just before apache starts. # apache2_flags (str):Set to by default. # Extra flags passed to start command. # apache2limits_args (str): Default to -e -C daemon # Arguments of pre-start limits run. # . /etc/rc.subr name=apache2 rcvar=`set_rcvar` start_precmd=apache2_precmd restart_precmd=apache2_checkconfig reload_precmd=apache2_checkconfig command=/usr/local/sbin/httpd pidfile=/var/run/httpd.pid required_files=/usr/local/etc/apache2/httpd.conf [ -z $apache2_enable ]apache2_enable=NO [ -z $apache2ssl_enable ] apache2ssl_enable=NO [ -z $apache2_flags ] apache2_flags= [ -z $apache2limits_enable ] apache2limits_enable=NO [ -z $apache2limits_args ]apache2limits_args=-e -C daemon load_rc_config $name checkyesno apache2ssl_enable \ apache2_flags=-DSSL $apache2_flags apache2_checkconfig() { echo Performing sanity check on apache2 configuration: ${command} -t } apache2_precmd() { if test -f /usr/local/sbin/envvars then . /usr/local/sbin/envvars fi if checkyesno apache2limits_enable then eval `/usr/bin/limits ${apache2limits_args}` 2/dev/null else return 0 fi } sig_reload=SIGUSR1 extra_commands=reload run_rc_command $1 -- Joshua Lokken Open Source Advocate ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
I installed Apache 2.0.52 on my fresh reinstallation of FreeBSD 5.3, but I can't figure out how the new rc.conf system works. How do I set things up so I can start Apache in rc.conf? I installed Apache directly from the downloaded source rather than from the ports, so this wasn't done automatically. Also, is there a comprehensive explanation of how the new rc.conf stuff works somewhere on the Web? I don't understand the rc.d interaction. -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting Apache 2.0.52 in rc.conf under FreeBSD 5.3
Anthony Atkielski [EMAIL PROTECTED] wrote: I installed Apache 2.0.52 on my fresh reinstallation of FreeBSD 5.3, but I can't figure out how the new rc.conf system works. How do I set things up so I can start Apache in rc.conf? I installed Apache directly from the downloaded source rather than from the ports, so this wasn't done automatically. Also, is there a comprehensive explanation of how the new rc.conf stuff works somewhere on the Web? I don't understand the rc.d interaction. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html Unfortunatly, this document doesn't fully explain how /usr/local/etc/rc.d has changed, but it's a good start nonetheless. More can be gleaned by following the links to other man pages, and reading the various /etc/rc scripts themselves. HTH. -- Bill Moran Potential Technologies http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]