LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2010, 12:14 PM   #1
cnmoore
Member
 
Registered: Sep 2010
Location: Sunnyvale, CA
Distribution: CentOS 5.5
Posts: 89

Rep: Reputation: 0
What is /httpd -k start -DSSL actually doing?


My googling doesn't get me anything useful.

Very simple question for you Linux experts:
What is /httpd -k start -DSSL actually doing?
I see a fair number of those lines in top.
Code:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13612 apache    16   0  167m  18m 4484 S  3.2  0.5   0:00.80 /usr/sbin/httpd -k start -DSSL
13588 apache    16   0  173m  23m 4472 R  2.3  0.6   0:01.84 /usr/sbin/httpd -k start -DSSL
13632 apache    16   0  166m  17m 4356 S  2.0  0.4   0:00.50 /usr/sbin/httpd -k start -DSSL
Is apache wiping out old idle threads, or what? Why do the different lines have different CPU% ? What is that -k ? does it mean 'kill'?

Last edited by cnmoore; 12-09-2010 at 12:16 PM.
 
Old 12-09-2010, 12:29 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

This is the command used to start apache with SSL support.
Actually what you've posted are the apache child processes.
Read the man page for details

Regards
 
Old 12-09-2010, 01:11 PM   #3
cnmoore
Member
 
Registered: Sep 2010
Location: Sunnyvale, CA
Distribution: CentOS 5.5
Posts: 89

Original Poster
Rep: Reputation: 0
Thanks - already studied man page to no avail. What I mainly don't understand is the "-k". Can't find any info about httpd command line.

So what does -k do?
 
Old 12-09-2010, 01:22 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
There is nothing strange with -k.
-k is an option that gets an extra argument. According to that argument it's used to start/stop/restart apache.
Basically httpd is not used to start apache. This is done with the wrapper script apachectl and the option used with apachectl is passed to httpd and used by the -k option. Thus if you run "apachectl start" you actually call "httpd -k start" and so on

Regards
 
Old 12-09-2010, 01:49 PM   #5
cnmoore
Member
 
Registered: Sep 2010
Location: Sunnyvale, CA
Distribution: CentOS 5.5
Posts: 89

Original Poster
Rep: Reputation: 0
Thank you very much. I never would have guessed - or found - that.
 
  


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
Can not restart httpd”File size limit exceeded(core dumped) $HTTPD -DSSL” sreejithedl Linux - Server 2 10-12-2009 11:24 AM
High server load... might be this process: /usr/local/apache/bin/httpd -DSSL ajames3436 Linux - Server 4 06-19-2009 07:45 AM
start httpd en vsftpd at start zerocool22 Linux - Server 11 04-25-2008 07:50 AM
httpd won't start charlie2450 Linux - Newbie 17 03-12-2008 07:23 PM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 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
Open Source Consulting | Domain Registration