runit-init(8) System Manager's Manual runit-init(8)NAME
init - a UNIX process no 1
SYNOPSIS
init [ 0 | 6 ]
DESCRIPTION
runit-init is the first process the kernel starts. If runit-init is started as process no 1, it runs and replaces itself with runit(8).
If runit-init is started while the system is up, it must be either called as init 0 or init 6:
init 0 tells the Unix process no 1 to shutdown and halt the system. To signal runit(8) the system halt request, runit-init removes all
permissions of the file /etc/runit/reboot (chmod 0), and sets the execute by owner permission of the file /etc/runit/stopit (chmod
100). Then a CONT signal is sent to runit(8).
init 6 tells the Unix process no 1 to shutdown and reboot the system. To signal runit(8) the system reboot request, runit-init sets the
execute by owner permission of the files /etc/runit/reboot and /etc/runit/stopit (chmod 100). Then a CONT signal is sent to
runit(8).
EXIT CODES
runit-init returns 111 on error, 0 in all other cases.
SEE ALSO runit(8), runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), utmpset(8), svlogd(8)
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
runit-init(8)
Check Out this Related Man Page
runit(8) System Manager's Manual runit(8)NAME
runit - a UNIX process no 1
SYNOPSIS
runit
DESCRIPTION
runit must be run as Unix process no 1. It performs the system's booting, running, and shutdown in three stages:
STAGE 1
runit runs /etc/runit/1 and waits for it to terminate. The system's one time tasks are done here. /etc/runit/1 has full control of
/dev/console to be able to start an emergency shell if the one time initialization tasks fail. If /etc/runit/1 crashes, or exits 100, runit
will skip stage 2 and enter stage 3.
STAGE 2
runit runs /etc/runit/2, which should not return until system shutdown; if it crashes, or exits 111, it will be restarted. Normally
/etc/runit/2 starts runsvdir(8). runit is able to handle the ctrl-alt-del keyboard request in stage 2, see below.
STAGE 3
If runit is told to shutdown the system, or stage 2 returns, it terminates stage 2 if it is running, and runs /etc/runit/3. The systems
tasks to shutdown and possibly halt or reboot the system are done here. If stage 3 returns, runit checks if the file /etc/runit/reboot
exists and has the execute by owner permission set. If so, the system is rebooted, it's halted otherwise.
CTRL-ALT-DEL
If runit receives the ctrl-alt-del keyboard request and the file /etc/runit/ctrlaltdel exists and has the execute by owner permission set,
runit runs /etc/runit/ctrlaltdel, waits for it to terminate, and then sends itself a CONT signal.
SIGNALS
runit only accepts signals in stage 2.
If runit receives a CONT signal and the file /etc/runit/stopit exists and has the execute by owner permission set, runit is told to shut-
down the system.
if runit receives an INT signal, a ctrl-alt-del keyboard request is triggered.
SEE ALSO runit-init(8), runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), utmpset(8), svlogd(8)
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
runit(8)
Hi..
i am using HPUX ..and my /usr and /var file sytem has got full...
now i want to increase this file system size.
so what i have to do..
1st i have to go to init 1(single user mode)
umount the LV
increase the size of LV
then extendfs
then mount the File system and reboot to... (6 Replies)
Does anyone know the command to start the DNS Daemon.
I looked in the /etc/init.d/inetsvc file and it tells me what the text should look like. When I go to open the corresponding files they are encoded and I can't read them.
So is there a command that will start the DNS daemon?
If... (8 Replies)
Hi all,
Am trying to have an email sent on start up advising that the system has been reset.
During the week the system reset itself and no email was received, below is an extract of the file /etc/init.d/sendmail . And I'm stumped to understand why the email wasn't sent.
Can anyone see why... (6 Replies)
hi
i would like to know the path of init.ora in AIX Server
i tried with find command but i could not find it.
can somebody help me with that. (8 Replies)
Trying to install something. Can someone explain what this means?
chmod -R a+r .
chmod -R a+w logo.gif tempdir/ templates_c/
I recognize that file permissions are being changed (chmod), but beyond that, it's Greek to me. (6 Replies)
Hello all,
I did a considerable search of the forum and didn't find an answer so I'll ask it here. For clarity's sake I'll state that I know just enough about Unix to be Dangerous (I'm an old Clipper, VO, ASM programmer from the 80's.)
I would like to install PHP driven CMS program to my... (6 Replies)
Hi All,
Does anyone tell me , is there any difference between solaris "reboot " and init 6 ...bcos in case of reboot for a system ..can i use init 6 for that instead.
Thanks in advance,
J (6 Replies)
Hi,
Am new to solaris.Can anyone explains me the difference between using init and shutdown command. As per my knowledge shutdown will give notification to users, is there anything apart from that.
thanks in advance. (6 Replies)
IBM P Series #7026
Error Codes
#E47E212E - init
#1BA70F4E - SRC
#BA431EB7 - SRC
#C69F5C9B- SYSPROC
#369DO49B - SYSPFS
This happens on reboot the core dump fills up the root file system so I don't think it completes the dump. I can't read the core file with dbx.
Thanks (6 Replies)
Dear all,
I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel):
1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins
So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
hi folks, i have a snag, when i attempt shutdown of solaris 10 on a sunfire v240 it seems to pause for ages, and goes no further, im busy learning my way around the system so please be patient.
/etc(R)-bash-3.00$ init 6
/etc(R)-bash-3.00$ svc.startd: The system is coming down. Please wait.... (7 Replies)
Hi all.
On one workstation run Solaris 10 a simple user can to execute 'init 0' command without input (su and root password).
Example:
% init 0
%
OK
I don't understand how user can execute 'init 0' command on this workstation?
1) I checked /usr/local/etc/sudoers all lines are... (6 Replies)
Hi All,
I am facing this below mentioned issue, because of this i am not able send any mail using sendmail. no internet connectivity to server.
/etc/init.d/network: shcat: not found
Kindly help me in resolving this:) issue (8 Replies)
Hi, I recently had an issue and by mistake a script of mine has initiated init 6 command,
Is there a way to stop the reboot manually after init 6 is given,
Your response is highly appreciated.
Thanks in advance !! (9 Replies)