Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

reboot(2) [hpux man page]

reboot(2)							System Calls Manual							 reboot(2)

NAME
reboot - boot the system SYNOPSIS
DESCRIPTION
causes the system to reboot. howto is a mask of reboot options (see specified as follows: A file system sync is performed (unless is set) and the processor is rebooted from the default device and file. The processor is simply halted. A sync of the file system is performed unless the flag is set. should be used with caution. On systems with cellular architecture, all cells in the partition are rebooted in order to reconfigure the stable complex configuration data. On systems with non-cellular architec- ture, the default is A sync of the file system is performed unless the flag is set. Shut down the system firmware to a "ready to reconfigure" state and do not reboot. This option can be used only in combination with A sync of the file system is not performed. Unless the flag has been specified, reboot(2) unmounts all mounted file systems and marks them clean so that it will not be necessary to run fsck(1M) on these file systems when the system reboots. Only users with appropriate privileges can reboot a machine. RETURN VALUE
If successful, this call never returns. Otherwise, a -1 is returned and is set to indicate the error. ERRORS
fails if this condition is encountered: [EPERM] The effective user ID of the caller is not a user with appropriate privileges. DEPENDENCIES
The default file and device for is on the current root device. AUTHOR
was developed by HP and the University of California, Berkeley. SEE ALSO
reboot(1M), privileges(5). reboot(2)

Check Out this Related Man Page

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)
Man Page

15 More Discussions You Might Find Interesting

1. AIX

how to pre-determine if a reboot is required?

given any specific fix, how can I determine if the machine will require a reboot? (I don't have a window for downtime) obvious fix's to the kernel / lvm will require a reboot ... bos.rte files etc... is there a tool or command that I am able to run against a specific IY that will inform me... (4 Replies)
Discussion started by: A Stewart
4 Replies

2. UNIX for Advanced & Expert Users

Can I reboot SunBlade150 from CD?

I have a SunBlade 150 sparc machine. I get this box without root password. When I truned on the machine and typed ctrl -D to run under normal mode. The file system couldn't be mounted. If I don't care about current system and files on the machine and want to rebuild this box with solaris 10. Can I... (13 Replies)
Discussion started by: duke0001
13 Replies

3. Solaris

System Reboot Log

Hello Everyone , I am a new member to this forum and came to know about this from so many of my friends . I face one issue last day when suddenly the system got rebooted ( But don,t know why ) . Can someone please help me in investigating this issue as to why the system got rebooted and who... (4 Replies)
Discussion started by: gera_sachin125
4 Replies

4. UNIX for Advanced & Expert Users

Eth1 turn off by itself after reboot

Hi, Recently we discovered the eth1 of one of the server turn off by itself when the system reboot. Could someone please advise how to fix it? Thanks (4 Replies)
Discussion started by: beeloo
4 Replies

5. 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

6. Solaris

HBA disappeared after reboot

Hello all I was configuring a SUN 2540 raid and after a reboot the hba`s is gone. There is no longer an entry in etc/path_to_inst for them (2 cards). I tried a reconfigure boot several times but it does not work. The hba`s is a SUN qlogic 2200 in x4240 server (AMD). Using solaris 10 update7.... (6 Replies)
Discussion started by: vettec3
6 Replies

7. Solaris

Last reboot with odd dates

this system go rebooted itself and when I check the last reboot command , the dates are shown without any sequence... Any idea? # last reboot -a reboot system boot Mon Jan 25 19:33 reboot system down Mon Jan 25 19:25 reboot system boot Tue Nov 10 14:33 reboot system down ... (4 Replies)
Discussion started by: busyboy
4 Replies

8. AIX

xntpd starts after reboot only when HACMP services are started ?

Hello, Running AIX 6.1, AIX machine is HACMP node. Recently I set up ntp service. Started xntpd by hand - everythig is OK. Configured xntpd to start after reboot and rebooted the machine. After reboot checked xntpd: # lssrc -a|grep ntp xntpd tcpip ... (5 Replies)
Discussion started by: vilius
5 Replies

9. Solaris

SUN Netra 240 Boot error

Hi, When I am trying to boot my SUN Netra 240 Machine its giving some boot error. > {1} ok boot -i > Boot device: /pci@1c,600000/scsi@2/disk@0,0:a File and args: -i > Boot load failed. > The file just loaded does not appear to be executable. > {1} ok I tried to boot it from cdrom... (9 Replies)
Discussion started by: ppandey21
9 Replies

10. Red Hat

Production unexpectedly server rebooted

I am trying to figure out what might causing Production server unexpectedly reboot during last few months .. Is auto reboot is set , I can check it is not set during the kernel panic but are they any other parameters which I am missing . -bash-2.05b$ uname -a Linux PD1011... (4 Replies)
Discussion started by: dba1981
4 Replies

11. Solaris

/tmp its empty after every reboot

dears all after any reboot for my solaris machin the mount point /tmp it will empty is there command to remove this thing and make the data under /tmp stay after the reboot . (4 Replies)
Discussion started by: thecobra151
4 Replies

12. Linux

Linux server reboot

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

13. Shell Programming and Scripting

Two scripts after reboot

I have two scripts: scriptone.sh & scripttwo.sh I need to schedule them to run scriptone.sh then scripttwo.sh after the servers is rebooted ( only first reboot ) OS: AIX 6.1 (4 Replies)
Discussion started by: Sara_84
4 Replies

14. AIX

Automation of AIX LPARs reboot

Hello Everyone, Can you please help me with the following questions regarding recycling LPARs. 1) Is it recommended to automate the reboot of AIX LPARs with a script ? i mean we've few App LPARs and Database LPARs. we would like to bring down LPARs on last sunday of every month for about 1... (4 Replies)
Discussion started by: System Admin 77
4 Replies

15. UNIX for Beginners Questions & Answers

Can I trace who asked for reboot

Hi, I have an unexpected reboot happening on a Debian 9.9 server. Yesterday 2019-12-01 at 8:30:34 a reboot happened without me or my team being aware: /var/log/syslog:Dec 1 08:30:34 xxxx shutdown: shutting down for system reboot /var/log/syslog:Dec 1 08:30:34 xxxx init: Switching to... (4 Replies)
Discussion started by: chebarbudo
4 Replies