How to clear maintenance state for apache2 server?


 
Thread Tools Search this Thread
Operating Systems Solaris How to clear maintenance state for apache2 server?
# 1  
Old 05-17-2010
How to clear maintenance state for apache2 server?

Can any one of you suggest me the method to get apache server in online from maintenance mode. I tried in the following way, but couldn't get that service to online.


Code:
bash-3.00# svcs -a | grep apache
legacy_run      9:51:55 lrc:/etc/rc3_d/S50apache
offline     9:51:22 svc:/network/http:apache2

bash-3.00# svcadm -v enable svc:/network/http:apache2
svc:/network/http:apache2 enabled.

bash-3.00# svcs -a | grep apache
legacy_run      9:51:55 lrc:/etc/rc3_d/S50apache
maintenance     9:51:22 svc:/network/http:apache2

bash-3.00# svcadm -v clear svc:/network/http:apache2
Action maint_off set for svc:/network/http:apache2.

bash-3.00# svcs -a | grep apache
legacy_run      9:51:55 lrc:/etc/rc3_d/S50apache
maintenance     9:51:22 svc:/network/http:apache2


Last edited by pludi; 05-17-2010 at 08:51 AM.. Reason: code tags, please...
# 2  
Old 05-17-2010
what do you see in the logs ( /var/svc/log/network-http\:apache2.log )

And have you tried disable/enable (which usually resolves maint state, but doesn't give much help to work out *why* it's happening)
# 3  
Old 05-21-2010
did you try

svcs -vx
# 4  
Old 05-25-2010
Also, you can try to find the services required by apache to run are enabled or not. You can check the same with
Quote:
svcs –d
which will list you the dependencies of apache on other service.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Metastat shows state needs maintenance

Hi, We have a Solaris 10 machine with update 11 and was configured with IBM storage. It was assigned 2 LUNs (each 70GB) which were striped to make it 140GB. we have taken full backup of entire machine and Our storage team replaced IBM storage with Nimble storage (they did storage-level... (6 Replies)
Discussion started by: prvnrk
6 Replies

2. Infrastructure Monitoring

Can HPOV monitor server hung state ?

Hi, We have Solaris-10 running on VMware (x86). It is being monitored by HP Openview. Sometimes when this server hungs, while ping still works, HPOpenview can't alert that server is down (which is actually unresponsive). First symptom we see is, login failure. It will ask user name and after... (7 Replies)
Discussion started by: solaris_1977
7 Replies

3. Solaris

Apache2 maintenance

Hi! apache and tomcat are installed in default on solaris 10, after some configuration tomcat is enable, but apache status is maintenance... How to change its status to online...? The log say And when I tape the svcs -xv commande, this is the result bash-3.00# svcs -xv... (2 Replies)
Discussion started by: tood
2 Replies

4. Solaris

/network/smb/server goes into maintenance mode.

All I'm running an OpenSolaris system (Nexenta). When doing a svcs I see that/network/smb/server is in maintenance mode. I have run a clear on the service and restarted. I see the same service show online* for a bit but then, enters maintenance every time. In the service log I... (2 Replies)
Discussion started by: dcpatriot
2 Replies

5. Solaris

SSH : Restarting too quickly, changing state to maintenance

Hi, I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0 $svcadm restart svc:/network/ssh:default $echo $? 0 $ However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in... (3 Replies)
Discussion started by: maverick_here
3 Replies

6. Shell Programming and Scripting

How can i get the state of weblogic server

Hi, all Now i want write a shell to get the state of weblogic server,and when the Managed Server's state is not ok, after 3 times checking, i will send msg to the system administrator by sms. BTW, my environment is : Linux ,Redhat 5.4 64bit weblogic version: 10.3.3 the count number... (1 Reply)
Discussion started by: wangsk
1 Replies

7. Solaris

both mirrors in needs maintenance state.

Hi, Ii am facing the belwo problem: d50: Mirror Submirror 0: d30 State: Needs maintenance Submirror 1: d40 State: Needs maintenance Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 212176648 blocks (101 GB) d30:... (3 Replies)
Discussion started by: sag71155
3 Replies

8. Solaris

How to clear STATE - uninitialized in solaris 10

Helloo Frd's, How to clear uninitialized state in solaris 10 Services, the fallowing inetadm shows on my server. I tried svcadm clear, enable... not worked. And also i can't change to enable some of service on that. sara4@root# inetadm ENABLED STATE FMRI disabled ... (6 Replies)
Discussion started by: madhu548
6 Replies
Login or Register to Ask a Question