LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2003, 05:02 PM   #1
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
Apache 2 w/ SSL Boot


Hello everyone.

I'm trying to figure out a way to put my apache installation at bootup time. I have RH9, and it seems to be that at runlevel 5, it runs a symbolic link /etc/rc5.d/S85httpd that points to the file /etc/rc.d/init.d/httpd. Now i'm using SSL, which means I need to type apachectl startssl to start apache. I looked in the apachectl script, and startssl is the same as doing:
Code:
httpd -k start -DSSL
Now I was wondering what would be a good way to incorporate that command in the /etc/rc.d/init.d/httpd script file? I looked through it, and there was the start() command:
Code:
start() {
        echo -n $"Starting $prog: "
        check13 || exit 1
        daemon $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
        return $RETVAL
}
$httpd points to the file place, but I can't figure out where the $OPTIONS variable comes from. If i could edit that variable to "-k start -DSSL", then everything would work fine, i'm assuming. So does anyone know where I can define that $OPTIONS variable?

EDIT

oh yeah, btw, i already got rid of the pass phrase needed with apachectl startssl, so no need to worry about that!

Last edited by jqcaducifer; 08-14-2003 at 05:03 PM.
 
Old 08-15-2003, 02:42 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I think it is usually from:
/etc/sysconfig/httpd

You could just use this though:
daemon $httpd -k start -DSSL $OPTIONS
 
  


Reply


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
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 05:11 PM
apache and apache-ssl questions merana Debian 4 03-10-2005 11:10 AM
apache-ssl opabil Linux - Networking 0 11-03-2004 08:26 AM
SSL and Apache bigdogg Linux - Software 25 07-22-2004 10:24 AM
Apache 2.0 and SSL harlow400 Linux - Software 8 03-10-2004 03:56 AM


All times are GMT -5. The time now is 06:16 AM.

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