On Thu, Jun 14, 2001 at 10:49:11AM +0300, Danny Braniss wrote:
>
> > I've asked -ports before whether it is suitable to let ports startup scripts
> > honor /etc/rc.conf{,.local} settings by sourcing /etc/defaults/rc.conf and
> > then running a source_rc_confs (or whatever is appropriate).
>
> my suggestion:
>
> this is the 'modified' loop for the ${local_startup} in /etc/rc:
>
> case ${local_startup} in
> [Nn][Oo] | '')
> ;;
> *)
> echo -n 'Local package initialization:'
> for dir in ${local_startup}; do
> if [ -d "${dir}" ]; then
> for script in ${dir}/*.sh; do
> s=`basename ${script} .sh`
> v=`eval echo '$'${s}_enable|dd conv=ucase`
> if [ -x "${script}" -a ${v} = YES ]; then
> (set -T
> trap 'exit 1' 2
> ${script} start)
> fi
> done
> fi
> done
> echo '.'
> ;;
> esac
>
> you just add: mysql_enable="YeS"
OK, and what do I do if I want to manually start/stop the service later,
and it needs variables defined in /etc/rc.conf{,local} ?
G'luck,
Peter
--
This sentence would be seven words long if it were six words shorter.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message