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(8) System Manager's Manual reboot(8)Name
reboot - automatic reboot procedures
/etc/reboot [ -n ] [ -q ]
The ULTRIX system is booted by loading a kernel image, usually into memory at location zero and transferring to zero. Because the system
is not reenterable, the kernel image must be read in from disk each time the system is bootstrapped.
When the reboot of a running system is desired, is normally used. If there are no users, can be used. The command causes the disks to be
synced, and then a multiuser reboot is initiated. The system is booted and an automatic disk check is performed. If the procedure suc-
ceeds, the system is then brought up for the users.
The system will reboot itself after a power failure or after a crash, provided auto-restart is enabled on your system. A consistency check
of the file systems will be performed and, unless the check fails, the system will resume multiuser operations.
Options-n Prevents the disks from being synced.
-q Reboots quickly and ungracefully, without shutting down running processes first.
See Alsocrash(8v), fsck(8), halt(8), init(8), newfs(8), rc(8), shutdown(8)reboot(8)
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)