|
News,
Internal,
Projects,
Home Software, Support, Documentation |
/usr/ports/UPDATINì ëìì ëìì ìëì
20040501:
AFFECTS: users of www/apache13
AUTHOR: nork@xxxxxxxxxxx
The apache13 port must now be enabled / disabled and configured in
rc.conf. See the pkg-message or script for details.
/etc/rc.confì
apache_enable= "YES"
ë ìêíììì..
On Tue, 11 Jan 2005 18:50:55 +0900, space sin <secureis@xxxxxxxxx> wrote:
> ìëì apache-1.3.33_1 ë êììëë.
> êëê ì ìíì ìíì
> # /usr/local/etc/rc.d/apache.sh start
> ë ìííë ëëì ì ìëìëì..
> (íë 4.10)
> êë êëí apachectl start íë ëë êì ìê ìëë..(ìêë íë ëëë.)
> ììíì ìëííìë ìêì ì ëëì ìíì ëëì ìëë ìíì ìëëë.
>
> íë ìíëíë ìíì ììíëì ìëìë ììëêìë.. ë..
> íìí ëë mysql(4.0.23a) ìíëíë ëêì ìëìë ìíëíë ììì ëì ìëë.. ìíì íë ëëì ì ìëìëì..
>
> ìíìíë ìíëí ëë ì ì ëë ìíëíê ííëì ìëìê ë êêíëì.. ^^;;
>
> ììëì ëì ììëì ìì ìì ìë ìíëíëì ìíëê íê ììë.. ìëì ìëìì..
> ëë ëëì ìí ìíê ìí ìë ìíëíë ììíìëì?
> ìì ìíëí ììë ì ìëììë êìíêìëë.. ^^;;
>
> ëìëì ëì ëë ìêì.. ããã
>
> # cat apache.sh
> #!/bin/sh
> # $FreeBSD: ports/www/apache13/files/apache.sh,v 1.9 2004/08/29
> 11:07:42 ache Exp $
>
> # PROVIDE: apache
> # REQUIRE: DAEMON
> # BEFORE: LOGIN
> # KEYWORD: FreeBSD shutdown
>
> # Define these apache_* variables in one of these files:
> # /etc/rc.conf
> # /etc/rc.conf.local
> # /etc/rc.conf.d/apache
> #
> # DO NOT CHANGE THESE DEFAULT VALUES HERE
> #
> apache_enable=${apache_enable-"NO"}
> apache_flags=${apache_flags-""}
> apache_pidfile=${apache_pidfile-"/var/run/httpd.pid"}
>
> . /usr/local/etc/rc.subr
>
> name="apache"
> rcvar=`set_rcvar`
> command="/usr/local/sbin/httpd"
>
> load_rc_config $name
>
> pidfile="${apache_pidfile}"
>
> start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www
> ${command} ${apache_flags} ${command_args}"
>
> run_rc_command "$1"
>
> ====================================
>
> # cat mysql-server.sh
> #!/bin/sh
> #
> # $FreeBSD: ports/databases/mysql40-server/files/mysql-server.sh,v 1.7
> 2004/10/31 10:43:07 ale Exp $
> #
>
> # PROVIDE: mysql
> # REQUIRE: NETWORKING SERVERS
> # BEFORE: DAEMON
> # KEYWORD: shutdown
>
> #
> # Add the following line to /etc/rc.conf to enable mysql:
> # mysql_enable (bool): Set to "NO" by default.
> # Set it to "YES" to enable MySQL.
> # mysqllimits_enable (bool): Set to "NO" by default.
> # Set it to yes to run `limits $limits_args`
> # just before mysql starts.
> # mysqllimits_args (str): Default to "-e -U mysql"
> # Arguments of pre-start limits run.
> #
>
> . /usr/local/etc/rc.subr
>
> name="mysql"
> rcvar=`set_rcvar`
> mysql_dbdir="/var/db/mysql"
> mysql_user="mysql"
> pidfile="${mysql_dbdir}/`/bin/hostname`.pid"
> command="/usr/local/bin/mysqld_safe"
> command_args="--user=${mysql_user} --datadir=${mysql_dbdir}
> --pid-file=${pidfile} > /dev/null &"
> procname="/usr/local/libexec/mysqld"
> start_precmd="${name}_prestart"
>
> [ -z "$mysql_enable" ] && mysql_enable="NO"
> [ -z "$mysqllimits_enable" ] && mysqllimits_enable="NO"
> [ -z "$mysqllimits_args" ] && mysqllimits_args="-e -U ${mysql_user}"
>
> mysql_prestart()
> {
> if checkyesno mysqllimits_enable; then
> eval `/usr/bin/limits ${mysqllimits_args}` 2>/dev/null
> else
> return 0
> fi
> }
>
> required_dirs="${mysql_dbdir}"
> required_files="${mysql_dbdir}/mysql/host.frm
> ${mysql_dbdir}/mysql/user.frm ${mysql_dbdir}/mysql/db.frm"
>
> load_rc_config $name
> run_rc_command "$1"
>
>
> _______________________________________________
> íê FreeBSD ììì êë(KFUG) questions ëìë ëìí
> questions at kr.FreeBSD.org
> http://www.kr.FreeBSD.org/mailman/listinfo/questions
>
--
Choe, Cheng-Dae(ììë)
Blog: http://www.comdongin.com/
_______________________________________________ 한국 FreeBSD 사용자 그룹(KFUG) questions 메일링 리스트 questions at kr.FreeBSD.org http://www.kr.FreeBSD.org/mailman/listinfo/questions
|
Copyright © 1998-2005 Korea FreeBSD Users Group. All rights reserved. webmaster at kr.FreeBSD.org $Date: 2005/01/12 17:58:48 $ |
|