Sponsored Content
Operating Systems Linux Red Hat Server usually restart not reason Post 302528287 by vietbk87 on Monday 6th of June 2011 10:52:03 PM
Old 06-06-2011
Thanks for rely,
- Here comand

Code:
"last | egrep reboot"
reboot   system boot  2.6.18-164.el5   Mon Jun  6 16:40          (17:03)
reboot   system boot  2.6.18-164.el5   Mon Jun  6 12:35          (04:00)
reboot   system boot  2.6.18-164.el5   Sat Jun  4 15:45         (2+00:50)
reboot   system boot  2.6.18-164.el5   Sat Jun  4 00:51         (2+15:44)
reboot   system boot  2.6.18-164.el5   Fri Jun  3 17:46         (2+22:49)
reboot   system boot  2.6.18-164.el5   Fri Jun  3 11:09         (3+05:26)
reboot   system boot  2.6.18-164.el5   Mon May 30 09:52         (7+06:43)
reboot   system boot  2.6.18-164.el5   Sat May 28 04:01         (9+12:34)
reboot   system boot  2.6.18-164.el5   Sat May 28 03:25         (9+13:10)
reboot   system boot  2.6.18-164.el5   Fri May 27 06:02         (10+10:33)
reboot   system boot  2.6.18-164.el5   Thu May 19 15:10         (18+01:25)
reboot   system boot  2.6.18-164.el5   Wed May 18 14:36         (1+00:30)
reboot   system boot  2.6.18-164.el5   Wed May 18 14:15          (00:16)
reboot   system boot  2.6.18-164.el5   Wed May 18 12:15          (01:56)
reboot   system boot  2.6.18-164.el5   Wed May 18 11:33          (00:37)
reboot   system boot  2.6.18-164.el5   Wed May 18 11:14          (00:14)
reboot   system boot  2.6.18-164.el5   Tue May 17 22:32          (12:38)
reboot   system boot  2.6.18-164.el5   Thu May 27 23:40         (354+22:47)
reboot   system boot  2.6.18-164.el5   Thu May 27 23:26          (00:07)
reboot   system boot  2.6.18-164.el5   Thu May 27 22:34          (00:11)
reboot   system boot  2.6.18-164.el5   Thu May 27 21:55          (00:12)
reboot   system boot  2.6.18-164.el5   Thu May 27 21:48          (00:03)

- I have a attach file log reboot.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mount: failed, reason given by server: Permission denied

Hi , I have a filesystem on AIX 4.3.3 which i need to share with other clients who use Windows NT and Redhat linux 7.3. I use samba to share this with Windows NT Clients. Now i was to share this with Linux clients. When i try to nfs mount this on Linux i get "mount: failed, reason given by... (1 Reply)
Discussion started by: Sushesh
1 Replies

2. UNIX for Dummies Questions & Answers

how can I restart X server ?

WITHOUT shutdown X ??? thanks , Ivan (6 Replies)
Discussion started by: oneivan
6 Replies

3. Shell Programming and Scripting

How to restart the tomcat server

hi, I need a command that restart the tomcat server. for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script. like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies

4. SuSE

How to check Server reboot reason

Hi, I want to know how can we check Server reboot reason on Suse linux ? or what caused server to reboot or hung. anyone knows abut the it. ? Bryan (3 Replies)
Discussion started by: bryanabhay
3 Replies

5. Solaris

Restart Xvnc server

Hi My i ask how to restart the Xvnc server running on a solaris box. This is the Xvnc server running process: Xvnc:1 -httpd /usr/local/vnc/classes -geometry 1024x768 -rfbwait 5000 -rfauth <dir> -rfbport <port no> -alwaysshared Additional Question: 1. Should i kill the process and restart... (1 Reply)
Discussion started by: jao_madn
1 Replies

6. UNIX for Advanced & Expert Users

Restart Linux server

Hello all: I am new to LINUX/UNIX administration task. My Infrastructure admin has allocated me a special lab server in client location. Per my requirement, had chanted few settings in LINUX/UNIX and need to reboot the server. I am the "root" user. I had used "shutdown -r now" at command line... (3 Replies)
Discussion started by: nvkuriseti
3 Replies

7. HP-UX

Unix server restart automatically

We have HP K class unix server, It's automatically restart the server. (10 Replies)
Discussion started by: ganesh24pal
10 Replies

8. Shell Programming and Scripting

script to restart a service in secondary server.

Can any one help me with a script to restart secondary server and sync data in it.. smsc101-0:ssh smsc101-1 "invoke-rc.d smsc restart" pwd:*** smsc101-0:rsync -avz /usr/local/smsc/data smsc101-1:/usr/local/npac/data (1 Reply)
Discussion started by: chinuku
1 Replies

9. UNIX for Advanced & Expert Users

UI accessiblity problem when using cronjob for server restart

Hi, I have a couch Db server running. I have written a script which will check and kill the multiple instances of the same and then start again a new one. Now when i start the db server manually, the UI of the DB is accessible via browser. But when i do the same using cronjob, the UI of... (0 Replies)
Discussion started by: sarath@123
0 Replies

10. UNIX for Advanced & Expert Users

How to Restart the web server

Hi, Unix AIX, on WebLogic How to Restart the web server Thank you. (2 Replies)
Discussion started by: big123456
2 Replies
reboot(3C)						   Standard C Library Functions 						reboot(3C)

NAME
reboot - reboot system or halt processor SYNOPSIS
#include <sys/reboot.h> int reboot(int howto, char *bootargs); DESCRIPTION
The reboot() function reboots the system. The howto argument specifies the behavior of the system while rebooting and is a mask con- structed by a bitwise-inclusive-OR of flags from the following list: RB_AUTOBOOT The machine is rebooted from the root filesystem on the default boot device. This is the default behavior. See boot(1M) and kernel(1M). RB_HALT The processor is simply halted; no reboot takes place. This option should be used with caution. RB_ASKNAME Interpreted by the bootstrap program and kernel, causing the user to be asked for pathnames during the bootstrap. RB_DUMP The system is forced to panic immediately without any further processing and a crash dump is written to the dump device (see dumpadm(1M)) before rebooting. Any other howto argument causes the kernel file to boot. The interpretation of the bootargs argument is platform-dependent. RETURN VALUES
Upon successful completion, reboot() never returns. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The reboot() function will fail if: EPERM The {PRIV_SYS_CONFIG} privilege is not asserted in the effective set of the calling process. SEE ALSO
Intro(1M), boot(1M), dumpadm(1M), halt(1M), init(1M), kernel(1M), reboot(1M), uadmin(2) SunOS 5.11 22 Mar 2004 reboot(3C)
All times are GMT -4. The time now is 02:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy