![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|