The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to diagnosis the problem on Solaris 10 for DB startup duke0001 UNIX for Advanced & Expert Users 2 09-10-2007 06:42 PM
X server startup on Solaris 9 purveshkhatri SUN Solaris 6 09-06-2007 03:33 AM
[Help] startup script on solaris 8 bucci Shell Programming and Scripting 0 11-06-2006 01:38 AM
Startup script DSL c19h28O2 Shell Programming and Scripting 0 04-11-2006 05:54 AM
Application can't startup?? Solaris and Linux RedHat TRUEST UNIX for Advanced & Expert Users 1 02-25-2003 06:02 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-26-2006
Zak Zak is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 31
Solaris Startup script for Apache.

I'm running Solaris 5.9 and Apache 2....

I've created a startup script for Apache....but it doesn't work!!!

it resides in /etc/init.d and has a link to /etc/rc3.d

and if it run it as /etc/init.d/apache_start stop it stops the httpd services and /etc/init.d/apache_start start starts the httpd services; however if I reboot the server the httpd services are not started....

I humbly submit my script.... thanking you all inadvance....


Code:
#!/bin/sh

#
# Startup script for Apache
#
if [ ! -d /data/apache ]
then
        # No point in going any further
        exit
fi

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

# Start/stop apache web server

case "$1" in
'start')
        /data/apache/bin/apachectl start
        ;;
'stop')
        /data/apache/bin/apachectl stop
        ;;
*)
        echo "Usage: /etc/init.d/apache_start { start | stop }"
        ;;
esac


Last edited by reborg; 07-26-2006 at 07:47 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0