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
start a script from another tty moka Shell Programming and Scripting 1 05-05-2008 09:31 AM
script to start DB didn't work, help duke0001 Shell Programming and Scripting 0 02-16-2007 12:02 PM
Set start point in script handak9 Shell Programming and Scripting 2 04-19-2005 09:46 AM
Start/Stop Script jjv1 UNIX for Dummies Questions & Answers 2 12-16-2003 04:28 PM
Start Up Script suntan UNIX for Dummies Questions & Answers 3 07-23-2001 11:03 AM

Closed Thread
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
  #1 (permalink)  
Old 03-09-2007
Mr Pink Mr Pink is offline
Registered User
  
 

Join Date: May 2006
Posts: 24
Start up script

Hello,

I have a script that starts a type of web server that I need to get to start up at startup, I would like to keep the current script in its directory and not stick it in the rc directorys. So really I want a shell script that will execute the web server script at startup. I dont really want anyone to type it out for me because where's the fun in at? If anyone could guide or link me to some sort of tutorial in would be most appreciated.

Thanks,

Mr Pink
  #2 (permalink)  
Old 03-09-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
You could do something like this:
1. Create your webserver startup script to handle start and stop as arguments
2. Create a link in the rc3.d directory as S99<script_name> that points to your startup script and a link in rc0.d as S00<script_name> that points to the same script.

When the system shuts down or boots up, the links in the rc directories will invoke your script to start/stop the webserver.
Closed Thread

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 09:06 PM.


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