Can I do the following
vi /etc/sysconfig/httpd
# Configuration file for the httpd service.
#
# The default processing model (MPM) is the process-based
# 'prefork' model. A thread-based model, 'worker', is also
# available, but does not work with some modules (such as PHP).
# The service must be stopped before changing this variable.
#
#HTTPD=/usr/sbin/httpd.worker
#
# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
#OPTIONS=
#
# By default, the httpd process is started in the C locale; to
# change the locale in which the server runs, the HTTPD_LANG
# variable can be set.
#
#HTTPD_LANG=C
ORACLE_BASE=/u01/oracle
ORACLE_HOME=/u01/oracle/10g
ORACLE_SID=king
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
PATH=$PATH:$ORACLE_HOME/bin
NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG
NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32 PATH
~
--
Madunix_at_Gmail
Sysadmin
"Computers are useless. They can only give you answers" - Pablo Picasso
"Never trust a computer you can't throw out a window." - Steve Wozniak
vi /etc/sysconfig/httpd
# Configuration file for the httpd service.
#
# The default processing model (MPM) is the process-based
# 'prefork' model. A thread-based model, 'worker', is also
# available, but does not work with some modules (such as PHP).
# The service must be stopped before changing this variable.
#
#HTTPD=/usr/sbin/httpd.worker
#
# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
#OPTIONS=
#
# By default, the httpd process is started in the C locale; to
# change the locale in which the server runs, the HTTPD_LANG
# variable can be set.
#
#HTTPD_LANG=C
ORACLE_BASE=/u01/oracle
ORACLE_HOME=/u01/oracle/10g
ORACLE_SID=king
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
PATH=$PATH:$ORACLE_HOME/bin
NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG
NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32 PATH
~
On Tue, Aug 26, 2008 at 2:25 PM, Jim Perrin <jperrin@xxxxxxxxx> wrote:
On Tue, Aug 26, 2008 at 6:01 AM, Mad Unix <madunix@xxxxxxxxx> wrote:Which completely circumvents the usual process for starting up apache,
> i did the following, created a startup script
> [pons@king script]$ cat start_apache.sh
> #!/bin/bash
> ORACLE_BASE=/u01/oracle
> ORACLE_HOME=/u01/oracle/10g
> ORACLE_SID=king
> LD_LIBRARY_PATH=$ORACLE_HOME/lib
> LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
> PATH=$PATH:$ORACLE_HOME/bin
> NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG
> NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT
> export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32
> PATH
> /usr/sbin/apachectl start
>
> and call it from the rc.local...
and will be wiped away with a simple 'service httpd restart' or even
better (the weekly logrotate), and require you to reboot the machine
or call your script again. That might not be the *best* solution.
Ian's previous post about setting variables in /etc/sysconfig/httpd is
correct. Define the vars in /etc/sysconfig/httpd, and make sure you
export them there.
This is the intended use and the 'redhat' method.
--
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
--
Madunix_at_Gmail
Sysadmin
"Computers are useless. They can only give you answers" - Pablo Picasso
"Never trust a computer you can't throw out a window." - Steve Wozniak
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos