Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem with httpd. This already occured twice actually.
When I tried to restart the service, it seems that the parent got killed in the stop process but it won't restarted again and left tons of child processes.
I tried to grep the PIDs and killed all in once using :
'pkill -9 httpd' is a little shorter .. usually processes that don't respond to signals are in uninterruptible sleep ('D' in top output), they may be waiting for IO
'pkill -9 httpd' is a little shorter .. usually processes that don't respond to signals are in uninterruptible sleep ('D' in top output), they may be waiting for IO
hth
But the case here is that the httpd processes don't have any parent ID and can't be killed.
What should I do instead of rebooting? Have anyone encountered this issue before?
Thanks but I can't see the whole command line, could you please use 'ps -wwef | grep http' ?
If I was to guess, it looks like these are hanging around from a 'httpd -k start' or 'httpd -k restart' - how are you controlling the daemon, init script ?
Thanks but I can't see the whole command line, could you please use 'ps -wwef | grep http' ?
The server was already rebooted and back to normal so I don't think if I run the command now would give some hint to you
Quote:
If I was to guess, it looks like these are hanging around from a 'httpd -k start' or 'httpd -k restart' - how are you controlling the daemon, init script ?
That's right. I did 'httpd -k restart' yesterday perhaps twice or thrice because the http wasn't accessible. I thought it was dead, but it wasn't.
The thing is.. I always do the same thing, same treatment and same command in other Sun servers and never encountered this issue before in other words, never met a process that can't be killed using 'kill -9'
Another thing it may be is that that SMF is controlling apache - I had this issue awhile back, I tried to use the apachectl command to stop httpd and it would not die, I also tried using kill -9, it was because the service was being controlled by SMF so you may do a quick svcs -a | grep -i apache - and see if it is in there cause it will restart it over and over and over if you kill -9 it or whatever you do to it...
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
The first line apply to apache 1.2 and the second one to apache 2.x. Both are installed on your machine. 1.2 is launched through rc scripts, 2.x is managed by smf, and is reported in maintenance mode, i.e. not functioning properly.
The first line apply to apache 1.2 and the second one to apache 2.x. Both are installed on your machine. 1.2 is launched through rc scripts, 2.x is managed by smf, and is reported in maintenance mode, i.e. not functioning properly.
okay.. that is strange because right now the httpd is running well and I am using Apache 2.
How to find out what went wrong? I don't find any errors in /var/adm/messages nor in apache logs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.