Sponsored Content
Full Discussion: server restarting
Operating Systems Solaris server restarting Post 302201314 by seg on Monday 2nd of June 2008 01:07:03 AM
Old 06-02-2008
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
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...Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

restarting a while loop

I have a monitoring script that checks on the content of an alert file, I'm doing some checks on weather I have already reported on the alert (there is one alert per file). If I find that the content is the same as before how can I stop and restart the loop until there is differences bewteen the... (5 Replies)
Discussion started by: nhatch
5 Replies

2. Solaris

How to change Timezone without restarting teh server

Hi I have changed my timezone using the command export TZ='Asia/Calcutta" but teh affect is taking place only in teh shell where I am logged in. If I export teh variable when I open the new session, things are fine. Can I affetct the change universally, without restarting the server. ... (2 Replies)
Discussion started by: krishan
2 Replies

3. Solaris

shutting down/restarting oracle with the solaris server restart

How can I make sure that all the database instances are shut down and brought up when the server is restarted. Krishan (3 Replies)
Discussion started by: krishan
3 Replies

4. Solaris

cannot telnet after restarting server

Dear guys, Pls help me this case. I telnet normally to Solaris. After restarting it manually, I can only console, cannot telnet from my latop although I can ping it. I checked /etc/default/login /usr/sbin/in.telnetd /etc/inet/inetd.conf All these files are the same. I don't see telnet... (2 Replies)
Discussion started by: wipi
2 Replies

5. UNIX for Dummies Questions & Answers

Help with restarting SUN m4000 server

I'm trying to power on our SUN m4000 server after a recent shutdown. When I try to connect to the xscf console I'm getting prompted for a password. The system is not asking for a login just a password. Below is the output from the xscf console. Anyone know how I can safely get back to the... (0 Replies)
Discussion started by: orahi001
0 Replies

6. Shell Programming and Scripting

Help with restarting of application with reboot of AIX server

Hi, We have hosted our application on AIX server. The problem is that we have to start our application manually once the server is rebooted. Please guide me in writing a script that does this job automatically with the re-start of the server. I'm looking for something like windows services in... (2 Replies)
Discussion started by: himanshu397
2 Replies

7. Solaris

restarting sysedge on a solaris server

If I want to restart sysedge on a solaris box and it does not want to come up. It gets stucked. How can I check where the sysedge pid file so I can delete it and try to start sysedge again? What can cause sysedge to not come up? Thanks, (0 Replies)
Discussion started by: Pouchie1
0 Replies

8. Programming

Restarting the program

Hi, I use gfortran to run the code. Some times I need to stop the program and restart it. On restarting I need to run the program from the beginning. Is there any script or option available to restart the program from where it stopped? This script/option will be immensely useful for... (2 Replies)
Discussion started by: rpd25
2 Replies

9. Shell Programming and Scripting

Script for to kill the process Ids when restarting the unix server

Hi, I need a script to kill the process Ids for the user ABC. I prepared the following script after that while logging with user therough script i am not sure how to pass the user name and password.Can ou modify the script and help me out. #!/bin/bash for filesize in $(ls -ltr | grep... (4 Replies)
Discussion started by: victory
4 Replies

10. UNIX and Linux Applications

Is it mandatory or not to stop/start Applcation server ehen Restarting Database Server?

Good afternoon I need your help please. There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ? Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Discussion started by: alexcol
3 Replies
SYSLOG.CONF(5)						    Linux System Administration 					    SYSLOG.CONF(5)

NAME
syslog.conf - syslogd(8) configuration file DESCRIPTION
The syslog.conf file is the main configuration file for the syslogd(8) which logs system messages on *nix systems. This file specifies rules for logging. For special features see the sysklogd(8) manpage. Every rule consists of two fields, a selector field and an action field. These two fields are separated by one or more spaces or tabs. The selector field specifies a pattern of facilities and priorities belonging to the specified action. Lines starting with a hash mark (``#'') and empty lines are ignored. This release of syslogd is able to understand an extended syntax. One rule can be divided into several lines if the leading line is termi- nated with an backslash (``''). SELECTORS
The selector field itself again consists of two parts, a facility and a priority, separated by a period (``.''). Both parts are case insensitive and can also be specified as decimal numbers, but don't do that, you have been warned. Both facilities and priorities are described in syslog(3). The names mentioned below correspond to the similar LOG_-values in /usr/include/syslog.h. The facility is one of the following keywords: auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, security (same as auth), syslog, user, uucp and local0 through local7. The keyword security should not be used anymore and mark is only for internal use and therefore should not be used in applications. Anyway, you may want to specify and redirect these messages here. The facility specifies the subsys- tem that produced the message, i.e. all mail programs log with the mail facility (LOG_MAIL) if they log using syslog. The priority is one of the following keywords, in ascending order: debug, info, notice, warning, warn (same as warning), err, error (same as err), crit, alert, emerg, panic (same as emerg). The keywords error, warn and panic are deprecated and should not be used anymore. The priority defines the severity of the message The behavior of the original BSD syslogd is that all messages of the specified priority and higher are logged according to the given action. This syslogd(8) behaves the same, but has some extensions. In addition to the above mentioned names the syslogd(8) understands the following extensions: An asterisk (``*'') stands for all facilities or all priorities, depending on where it is used (before or after the period). The keyword none stands for no priority of the given facil- ity. You can specify multiple facilities with the same priority pattern in one statement using the comma (``,'') operator. You may specify as much facilities as you want. Remember that only the facility part from such a statement is taken, a priority part would be skipped. Multiple selectors may be specified for a single action using the semicolon (``;'') separator. Remember that each selector in the selector field is capable to overwrite the preceding ones. Using this behavior you can exclude some priorities from the pattern. This syslogd(8) has a syntax extension to the original BSD source, that makes its use more intuitively. You may precede every priority with an equation sign (``='') to specify only this single priority and not any of the above. You may also (both is valid, too) precede the priority with an exclamation mark (``!'') to ignore all that priorities, either exact this one or this and any higher priority. If you use both extensions than the exclamation mark must occur before the equation sign, just use it intuitively. ACTIONS
The action field of a rule describes the abstract term ``logfile''. A ``logfile'' need not to be a real file, btw. The syslogd(8) pro- vides the following actions. Regular File Typically messages are logged to real files. The file has to be specified with full pathname, beginning with a slash ``/''. You may prefix each entry with the minus ``-'' sign to omit syncing the file after every logging. Note that you might lose information if the system crashes right behind a write attempt. Nevertheless this might give you back some performance, especially if you run programs that use logging in a very verbose manner. Named Pipes This version of syslogd(8) has support for logging output to named pipes (fifos). A fifo or named pipe can be used as a destination for log messages by prepending a pipe symbol (``|'') to the name of the file. This is handy for debugging. Note that the fifo must be created with the mkfifo(1) command before syslogd(8) is started. Terminal and Console If the file you specified is a tty, special tty-handling is done, same with /dev/console. Remote Machine This syslogd(8) provides full remote logging, i.e. is able to send messages to a remote host running syslogd(8) and to receive messages from remote hosts. The remote host won't forward the message again, it will just log them locally. To forward messages to another host, prepend the hostname with the at sign (``@''). Using this feature you're able to control all syslog messages on one host, if all other machines will log remotely to that. This tears down administration needs. List of Users Usually critical messages are also directed to ``root'' on that machine. You can specify a list of users that shall get the message by simply writing the login. You may specify more than one user by separating them with commas (``,''). If they're logged in they get the message. Don't think a mail would be sent, that might be too late. Everyone logged on Emergency messages often go to all users currently online to notify them that something strange is happening with the system. To specify this wall(1)-feature use an asterisk (``*''). EXAMPLES
Here are some example, partially taken from a real existing site and configuration. Hopefully they rub out all questions to the configura- tion, if not, drop me (Joey) a line. # Store critical stuff in critical # *.=crit;kern.none /var/adm/critical This will store all messages with the priority crit in the file /var/adm/critical, except for any kernel message. # Kernel messages are first, stored in the kernel # file, critical messages and higher ones also go # to another host and to the console # kern.* /var/adm/kernel kern.crit @finlandia kern.crit /dev/console kern.info;kern.!err /var/adm/kernel-info The first rule direct any message that has the kernel facility to the file /var/adm/kernel. The second statement directs all kernel messages of the priority crit and higher to the remote host finlandia. This is useful, because if the host crashes and the disks get irreparable errors you might not be able to read the stored messages. If they're on a remote host, too, you still can try to find out the reason for the crash. The third rule directs these messages to the actual console, so the person who works on the machine will get them, too. The fourth line tells the syslogd to save all kernel messages that come with priorities from info up to warning in the file /var/adm/ker- nel-info. Everything from err and higher is excluded. # The tcp wrapper loggs with mail.info, we display # all the connections on tty12 # mail.=info /dev/tty12 This directs all messages that uses mail.info (in source LOG_MAIL | LOG_INFO) to /dev/tty12, the 12th console. For example the tcpwrapper tcpd(8) uses this as it's default. # Store all mail concerning stuff in a file # mail.*;mail.!=info /var/adm/mail This pattern matches all messages that come with the mail facility, except for the info priority. These will be stored in the file /var/adm/mail. # Log all mail.info and news.info messages to info # mail,news.=info /var/adm/info This will extract all messages that come either with mail.info or with news.info and store them in the file /var/adm/info. # Log info and notice messages to messages file # *.=info;*.=notice; mail.none /var/log/messages This lets the syslogd log all messages that come with either the info or the notice facility into the file /var/log/messages, except for all messages that use the mail facility. # Log info messages to messages file # *.=info; mail,news.none /var/log/messages This statement causes the syslogd to log all messages that come with the info priority to the file /var/log/messages. But any message com- ing either with the mail or the news facility will not be stored. # Emergency messages will be displayed using wall # *.=emerg * This rule tells the syslogd to write all emergency messages to all currently logged in users. This is the wall action. # Messages of the priority alert will be directed # to the operator # *.alert root,joey This rule directs all messages with a priority of alert or higher to the terminals of the operator, i.e. of the users ``root'' and ``joey'' if they're logged in. *.* @finlandia This rule would redirect all messages to a remote host called finlandia. This is useful especially in a cluster of machines where all sys- log messages will be stored on only one machine. CONFIGURATION FILE SYNTAX DIFFERENCES
Syslogd uses a slightly different syntax for its configuration file than the original BSD sources. Originally all messages of a specific priority and above were forwarded to the log file. The modifiers ``='', ``!'' and ``-'' were added to make the syslogd more flexible and to use it in a more intuitive manner. The original BSD syslogd doesn't understand spaces as separators between the selector and the action field. FILES
/etc/syslog.conf Configuration file for syslogd BUGS
The effects of multiple selectors are sometimes not intuitive. For example ``mail.crit,*.err'' will select ``mail'' facility messages at the level of ``err'' or higher, not at the level of ``crit'' or higher. SEE ALSO
sysklogd(8), klogd(8), logger(1), syslog(2), syslog(3) AUTHORS
The syslogd is taken from BSD sources, Greg Wettstein (greg@wind.enjellic.com) performed the port to Linux, Martin Schulze (joey@linux.de) made some bugfixes and added some new features. Version 1.3 1 January 1998 SYSLOG.CONF(5)
All times are GMT -4. The time now is 05:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy