I have a script to start apache when my opensuse 10.2 boots up
But after the booting is complete I log in as root, do a
ps -ef | grep httpd and nothing shows
Here is the script:
#!/bin/bash
#
# apache
#
# chkconfig:
# description: Start up the Apache web server.
# Source function library.
RETVAL=$?
APACHE_HOME="/opt/Apache"
case "$1" in
start)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Starting Apache"
$APACHE_HOME/bin/apachectl start
fi
;;
stop)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Stopping Apache"
$APACHE_HOME/bin/apachectl stop
fi
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
----------------------- end of /etc/init.d/apache
I run this script alone and it runs just fine.
I wish to have it boot up with the system.
I created two links in /etc/init.d/rc5.d a Start and a Kill
But when I boot up my system the rc scripts will not start
Any ideas???
But after the booting is complete I log in as root, do a
ps -ef | grep httpd and nothing shows
Here is the script:
#!/bin/bash
#
# apache
#
# chkconfig:
# description: Start up the Apache web server.
# Source function library.
RETVAL=$?
APACHE_HOME="/opt/Apache"
case "$1" in
start)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Starting Apache"
$APACHE_HOME/bin/apachectl start
fi
;;
stop)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Stopping Apache"
$APACHE_HOME/bin/apachectl stop
fi
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
----------------------- end of /etc/init.d/apache
I run this script alone and it runs just fine.
I wish to have it boot up with the system.
I created two links in /etc/init.d/rc5.d a Start and a Kill
But when I boot up my system the rc scripts will not start
Any ideas???