The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cannot telnet after restarting server wipi SUN Solaris 2 08-17-2007 02:57 AM
Restarting the Spooler Yorgy UNIX for Dummies Questions & Answers 0 09-29-2006 09:32 AM
shutting down/restarting oracle with the solaris server restart krishan SUN Solaris 3 07-08-2005 07:25 AM
How to change Timezone without restarting teh server krishan SUN Solaris 2 05-09-2005 06:36 PM
restarting a while loop nhatch UNIX for Dummies Questions & Answers 5 07-25-2003 07:42 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-01-2008
rcmrulzz's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 45
server restarting

Hello people,

My solaris server is rebooting, not sure how!!! Which log should I look in to? I checked /var/adm/messages and dmesg also. How do I check older dmesg logs? I checked lastlog and also ran the last command. Nothing useful pointing to why server rebooted.

Also when server reboots I want apache to also come up with it? For eg: I can give ./apachectl -k start in a startup script. Where is the startup script for the OS?

Thanks in advance...
Reply With Quote
Forum Sponsor
  #2  
Old 06-01-2008
seg seg is offline
Registered User
 

Join Date: Aug 2003
Posts: 96
What is the server model?

If possible connect to the console to watch for any error messages.

Alter /etc/syslog.conf to include *.debug in the line that points to /var/adm/messages then restart syslogd.

I use this:
Code:
## Log everything, include syslog internal timestams (mark), but ignore 
## auth and mail because they are handled later in the file.
*,mark.debug;auth,mail.none     /var/adm/messages
If you use that be sure to take out the space between .none and /var and insert a single TAB

To have apache start on boot put the apachectl command into an executable script and save it to /etc/rc3.d/S99mywebsite

Quote:
Originally Posted by rcmrulzz View Post
Hello people,

My solaris server is rebooting, not sure how!!! Which log should I look in to? I checked /var/adm/messages and dmesg also. How do I check older dmesg logs? I checked lastlog and also ran the last command. Nothing useful pointing to why server rebooted.

Also when server reboots I want apache to also come up with it? For eg: I can give ./apachectl -k start in a startup script. Where is the startup script for the OS?

Thanks in advance...
Reply With Quote
  #3  
Old 06-05-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 886
"My solaris server is rebooting, not sure how!!! "
Are you talking abt a system panic? I don't get you as why you're talking abt apache in the midst of server reboot issue.
Reply With Quote
  #4  
Old 06-05-2008
rcmrulzz's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 45
server rebooting

Sorry abt that....i guess I was not clear enough ...Actually those are two different topics....the apache is my doubt...coz once the server reboots apache wont come up on its own...got it? So I was thinking of adding a script somewhere...I got from the /var/adm/logs that a memory module is faulty, have to replace that...however since two days it has not rebooted...lets see..Hope now am clear enough now...
Reply With Quote
  #5  
Old 06-05-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 886
Check the /etc/rc3.d/S50apache. Is it disabled? Any OS hardening done recently to start up apache? can you perform ps -ef |grep http? There will be 2 apache instances. One in /etc/init.d and /etc/rc3.d. Are you sure which you're asking abt really? Is the web service?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0