Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-08-2005, 11:30 AM   #1
Registered: Oct 2004
Distribution: Slackware, CentOS
Posts: 135

Rep: Reputation: 15
Editing Start up scripts question

I'm running RH EL4 x86_64 and have a question about editing the httpd startup script. We are running something called CartWheel ontop of Apache, but it uses SCGI for its cgi needs. Its easy enought starting the scgi server from the command line, but I want to have it start when the httpd script runs.

I edited httpd like so

case "$1" in
command="/usr/local/share/cartwheel/bin/canal-scgi-server >& /usr/local/share/cartwheel/scgi-errors.log &"
exec $command
exit $RETVAL"

It works, the scgi-server starts, but for some reason beyond me, it will stop right there. The script wont end and let the rest of the start up sequence continue. I know it has something to do with the command, but I have no idea about it.

Old 09-09-2005, 02:43 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
When you exec a command it replaces the current shell. Just remove the exec command and it should work as expected. Take a look at the exec command section of "man bash" if you want a full explanation.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Slackware Install scripts comanighttrain Slackware 7 02-23-2006 06:35 PM
Start up scripts??? caged Slackware 7 06-03-2004 12:58 AM
Editing files from shell scripts? SirRobbin Linux - Newbie 6 03-23-2004 11:27 AM
Start Up Scripts in Linux clintonm9 Linux - Software 3 06-24-2003 10:37 AM
Editing Start Up sami Linux - Newbie 3 08-26-2002 05:06 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration