LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-04-2011, 01:18 AM   #16
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Original Poster
Rep: Reputation: 15

okay already went throught it.

Code:
#svcs -xv http:apache2
svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Mon Dec 13 16:02:19 2010
Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.
The /var/svc/log/network-http:apache2.log showed :
Code:
[ Dec 13 16:02:18 Executing start method ("/lib/svc/method/http-apache2 start") ]
[ Dec 13 16:02:19 Method "start" exited with status 96 ]
And also I checked this :
Code:
#find / -name httpd
/usr/apache/bin/httpd
/usr/apache2/bin/httpd
/usr/local/apache2/bin/httpd
I believe it showed 3 apaches in the system. Both in /usr/apache are by systems default and what I installed was in /usr/local/apache. Perhaps the apache2 svc above cannot be started because the port 80 is already been used by the /usr/local/apache (perhaps).

Now if my assumption is right I'll go back to my very first questions.. why did the /usr/local/apache could not be stopped? and it also couldn't be restarted. At first I read that it might be because the SMF is controlling the apache, but at this moment from facts that I've gathered it seems that the SMF was not in control. I even can't 'kill 9' any single httpd process at that moment.
 
Old 01-04-2011, 04:31 AM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Why did you install apache2 while it was already bundled with the OS ?

The Solaris service is handling the /usr/apache2 installation. You should disable (or reconfigure it to use a different port) it if you want to use the one in /usr/local/apache2.

About the processes not dying after a "kill -9", they are stuck in the kernel for some reason.

Last edited by jlliagre; 01-04-2011 at 03:02 PM.
 
Old 01-04-2011, 08:29 PM   #18
romeo_tango
Member
 
Registered: Nov 2006
Distribution: Mint
Posts: 148

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
Why did you install apache2 while it was already bundled with the OS ?

The Solaris service is handling the /usr/apache2 installation. You should disable (or reconfigure it to use a different port) it if you want to use the one in /usr/local/apache2.

About the processes not dying after a "kill -9", they are stuck in the kernel for some reason.
Because I don't know it was there. I'm not the one who installed the OS and we needed the newest apache at that time.

Okay, that's what also I have in mine. I'll try to configure or disable the /usr/apache2 then and hope that the /usr/local/apache2 will be fine after that.

Thank you very much.
 
Old 01-05-2011, 06:10 PM   #19
ADxD_7
Member
 
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
I would also suggest just changing the manifest script to run the /usr/local/apache2 you want it to - it is always good practice to use SMF - all you would need to do is edit /lib/svc/method/http-apache2 and change everything to reflect the /usr/local location of apache2 - then use svc commands to manage the service
 
Old 01-06-2011, 01:30 AM   #20
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That should work but beware a future Solaris patch might restore the modified files to using the regular apache2 instance. Better to create a separated SMF service.
 
  


Reply



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 a child process kill the parent process ? sree_ec Programming 8 11-20-2010 05:37 AM
bash `kill`: process 'B' silently dies; but process 'A' = `kill` spews back debris! GrapefruiTgirl Programming 9 06-23-2009 09:42 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 03:47 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:30 PM.

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