RC(8) System Manager's Manual RC(8)NAME
rc - command script for auto-reboot and daemons
Rc is the command script which controls the automatic reboot and rc.local is the script holding commands which are pertinent only to a spe-
When an automatic reboot is in progress, rc is invoked with the argument autoboot and runs a fsck with option -p to ``preen'' all the disks
of minor inconsistencies resulting from the last system shutdown and to check for serious inconsistencies caused by hardware or software
failure. If this auto-check and repair succeeds, then the second part of rc is run.
The second part of rc, which is run after a auto-reboot succeeds and also if rc is invoked when a single user shell terminates (see
init(8)), starts all the daemons on the system, preserves editor files and clears the scratch directory /tmp. Rc.local is executed immedi-
ately before any other commands after a successful fsck. Normally, the first commands placed in the rc.local file define the machine's
name, using hostname(1), and save any possible core image that might have been generated as a result of a system crash, savecore(8). The
latter command is included in the rc.local file because the directory in which core dumps are saved is usually site specific.
SEE ALSO init(8), reboot(8), savecore(8)BUGS 4th Berkeley Distribution April 27, 1985 RC(8)
Check Out this Related Man Page
reboot(2) System Calls Manual reboot(2)NAME
reboot - Reboots system or halts processor
void reboot( int howto );
Specifies a mask of options.
The reboot() function restarts the system. The startup is automatic and brings up /vmunix in the normal, nonmaintenance mode. The calling
process must have superuser privilege to run this function successfully. However, a reboot is invoked automatically in the event of unre-
coverable system failures.
The following options, defined in the sys/reboot.h include file are passed to the new kernel or the new bootstrap and init programs. They
are supplied as values to the howto parameter. The default, causing the system to reboot in its usual fashion. Dump kernel memory before
rebooting; see the savecore command for more information. The processor is simply halted; no reboot takes place. The disks are not sync'd
before the processor is halted or rebooted. Normally, the disks are sync'd (see the sync() command) before the processor is halted or
rebooted. Because the disks are not sync'd with the RB_NOSYNC option, loss of data may result from using it.
When no options are given (that is, RB_AUTOBOOT is used), the system is rebooted from file vmunix in the root file system of unit 0 (zero)
of a disk chosen in a processor-specific way. (see the fsck command).
If successful, this call does not return. Otherwise, a -1 is returned and errno is set to indicate the error.
If the reboot() function fails, errno may be set to the following value: The calling process does not have appropriate privilege.
halt(8), init(8), reboot(8), savecore(8) delim off
I need to totally power down my UNIX box, I think the script is
shutdown -y -i5 -g0
I know -i6 is for a clean reboot but I can't remember if -i5 is the power down script.....
Can anyone tell me if this is correct.
:confused: (5 Replies)
I need to run a script whenever i reboot or startup my HP-UX server. This script adds some routes to the route table, and it start third party aplications like "Star Manager".
I thought i could do this simply putting the script in "/sbin/init.d,
and a link to the script in... (7 Replies)
After seeing in a Unix cheatsheet that I could add commands into a file and run that file as a command to save on typing, i tried it with this:
# Backup website excluding directories that do not change
rsync -e "ssh -p 2222" -axzvc --progress --stats --compress-level=9... (9 Replies)
Hi all, we have a 280R with Solaris 10 11/06 and Oracle 10 installed.
For unknown reason the system become instable and after a reboot (init 6)
we got the message to run fsck manually. We did the check many time and now we have this result:
/dev/md/dsk/d0 IS CURRENTLY MOUNTED... (5 Replies)
i'm still new to this site and thought i might find some help here :).
lately i performed a script to make an automatic backup of some files in certain directories. the script looks something like this:
path=/export/home/cassi/Backup... (5 Replies)
I have a script in my home directory. it has to be run every day. as of now, im manually running as ./myscript.sh
Can someone please tell me how to set it as automatic run (runs everyday at specific time ) so that it runs even if im not there. (9 Replies)
I have database running,on windows server 2003 and my database are going down frequently due to some oracle bug.
I need help to configure the automatic script which run's and check the database status, if database is down then send me email.
Thanks in Advance. (32 Replies)
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
I need to know the reboot timings of remote servers (all unix/AIX server )with the help of shell script as the list of servers is 400+.
None of the commands uses system name as parameter .What to do ?
I am trying man -b in variety of codes am preparing but all in vain .
#!/bin/ksh... (5 Replies)
I am testing sudo and I want to test it. Can anyone please let me know few commands (of course other than shutdown, reboot etc. as I can't reboot the box) on AIX that can be run by ROOT only.
---------- Post updated at 07:43 PM ---------- Previous update was at 07:38 PM... (5 Replies)
I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system.
Please find the below details.
1. we have a web application that runs on Windows Platform.
2. From web application, we need to connect to remote Unix machine.... (6 Replies)