Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting Apache when booting up opensuse linux

Status
Not open for further replies.

womp

Technical User
Apr 6, 2001
105
US
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???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top