Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

reboot(2) [minix man page]

REBOOT(2)							System Calls Manual							 REBOOT(2)

reboot - close down the system or reboot SYNTAX
#define _MINIX_SOURCE 1 #include <unistd.h> int reboot(int how, ...) DESCRIPTION
Reboot() is used to close down the system. It allows several ways of shutting down depending on how: reboot(RBT_HALT) Halt the system and return to the monitor prompt. reboot(RBT_REBOOT) Reboot the system by letting the monitor execute the "boot" command. reboot(RBT_PANIC) Cause a system panic. This is not normally done from user mode, but by servers using the sys_abort() kernel call. reboot(RBT_MONITOR, code, length) Halt the system and let the monitor execute the given code of the given length. (code is of type char * and length of type size_t.) reboot(RBT_RESET) Reboot the system with a hardware reset. Reboot() may only be executed by the super-user. DIAGNOSTICS
If the call succeeds, it never returns. If something went wrong, the return value is -1 and an error is indicated by errno. SEE ALSO
shutdown(8), reboot(8), halt(8), sync(1). NOTES
Minix can not return to the monitor if running in real mode, or if started from MS-DOS. This means that most of the reboot functions will change to a reset. AUTHOR
Edvard Tuinder (v892231@si.hhs.NL) REBOOT(2)

Check Out this Related Man Page

REBOOT(8)						      System Manager's Manual							 REBOOT(8)

reboot - reboot the system immediately SYNOPSIS
reboot [-f] DESCRIPTION
Reboot can be used to reboot the system after installing a new kernel. It does not inform the users, but does log it's actions in /usr/adm/wtmp and /usr/adm/authlog. The system is then rebooted with the reboot(2) systemcall. If the -f flag is not given then all processes are sent terminate signals to give them a chance to die peacefully before the reboot() call. If the wtmp file exists, reboot logs itself as if it were a shutdown. This is done to prevent last(1) from talking about system-crashes. Reboot is registered as is in the authlog file. Reboot can only be executed by the super-user. Any other caller will be refused, either by reboot(8) or by reboot(2). SEE ALSO
reboot(2), shutdown(8), halt(8), boot(8). BUGS
The error message's given by reboot are not always useful. There are several routines that can fail, but which are not fatal for the pro- gram. AUTHOR
Edvard Tuinder (v892231@si.hhs.NL) REBOOT(8)
Man Page

15 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Intermitent System Reboot's

Hi all, Just started holidays (ya!) and Murphy's Law has kicked in already (doh!). I'm looking after (when at work) two SCO 5.0.5 Systems running on Netfinity 5500 Servers (Model # 8662-3RY). Every once and a while the production server just reboot's itself. There is no mention of a cause... (8 Replies)
Discussion started by: Cameron
8 Replies

2. HP-UX

Scripts for monitoring real time for the error code

Hi ! I wish extract one information(error code) from the machine which is running on the HP-UX platform. Can anyone help me? Wanted to write a scripts that monitor real time at the error code and transfer the information out from the machine. The information is then process and SMS out to the... (9 Replies)
Discussion started by: JOHNSON
9 Replies

3. UNIX for Dummies Questions & Answers


I am trying to change an IP address on a machine running HPUX10 After I change it I can ping it from the outside but it completely locks the console. After a reboot it returns back to its previous IP. Any ideas?? Thanks Brian (7 Replies)
Discussion started by: breigner
7 Replies

4. Solaris

Network Connectivity lost after reboot

I have 4 V440 servers running Solaris 9. I have their interfaces configured (ce0) and have connectivity to our network. However, after reboot,...the connectivity is lost although the interface shows that its still up after an ifconfig -a. Only after I reconfigure the interface do I restore... (19 Replies)
Discussion started by: StorageGuy
19 Replies

5. Solaris

Reboot problem !!! urgent plse !!!!!!!!!!!

Operatin System : Solaris 5.9 Server : Sun Fire 3800 Shutdown and reboot i receive the following messages ..... un Fire 3800 OpenFirmware version 5.15.2 (08/04/03 10:27) Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. SmartFirmware,... (8 Replies)
Discussion started by: tt155
8 Replies

6. Solaris

Reboot of Unix servers - recommended?

Hello, Please can anyone tell me - is it true that you should not re-boot Unix Sun Solaris servers on a regular basis, but onyl do it when really required? We want to schedule a reboot on a daily basis, to clear any rogue processes, but have been told this is not a good idea. Can anyone... (13 Replies)
Discussion started by: polly013
13 Replies

7. SCO

Network lost after reboot

Hi .. can anyone help with this pleeaasse .. I have a Sco Unixware 7.1.0 server which has been running fine for nearly 10 years ... we have not had to do any os changes for several years. We tend to reboot it about once a month just to keep everthing clean! My issue is that we have just... (7 Replies)
Discussion started by: DickTutton
7 Replies

8. HP-UX

API about system performance monitor

Hello, there. We want to write application on HP-UX to monitor system resource,such as CPU,Network Traffic Load,Disk Usage,etc. Anyone know these API functions except the system command ? thanks. (6 Replies)
Discussion started by: Frank2004
6 Replies

9. UNIX for Advanced & Expert Users

shedule monthly reboot on first sunday

Hello, I looked around but can't find a clear answer on this. Is there a way to shedule a box to reboot say on the first sunday of every month? Does it involve the cron.monthly file somehow, I googled and can't find how those cron.weekly, cron.monthly files function... This would be for Suse 9... (8 Replies)
Discussion started by: benefactr
8 Replies

10. Shell Programming and Scripting

Script to Reboot and Confirm

On my Solaris box I have to reboot some devices like below. However I think this can be done through a script. I've create a list that contains the devices IP addresses. Here's the logic: Reboot 4 devices and sleep for 5mins(300s.) While the devices are rebooting, I would like to confirm... (9 Replies)
Discussion started by: ravzter
9 Replies

11. Solaris

Any specific time to reboot the sun server to avoid unplanned outage ??

Hi, Would like to know the uptime or specific time limit to reboot the sun microsystem to avoid unplanned outage. Regards,Tarun (9 Replies)
Discussion started by: taruntan
9 Replies

12. Linux

Linux server reboot

We reboot our linux servers daily. Is it needed ? (10 Replies)
Discussion started by: linuxadmin
10 Replies

13. Solaris

vnc issue after reboot

Hi , Everytime after reboot when user tries to start vnc below error is thrown $ vncserver :5 Couldn't start Xvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xvnc process. _XSERVTransSocketCreateListener: failed to bind listener... (7 Replies)
Discussion started by: chidori
7 Replies

14. UNIX for Dummies Questions & Answers

How to shutdown Linux box with user confirmation?

Hi Guru's Am looking for linux reboot command which get executed after user confirmation .Can someone please help me with this.:confused::confused::confused: (6 Replies)
Discussion started by: kapil514
6 Replies

15. Red Hat

Update kernel Linux without reboot?!

Hi Is it a way ? When Linux kernel updated that don't want reboot it means without reboot the new kernel performances Thanks (7 Replies)
Discussion started by: mnnn
7 Replies