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
runsvdir(8) System Manager's Manual runsvdir(8)NAME
runsvdir - starts and monitors a collection of runsv(8) processes
SYNOPSIS
runsvdir [-P] dir [ log ]
DESCRIPTION
dir must be a directory. log is a space holder for a readproctitle log, and must be at least seven characters long or absent.
runsvdir starts a runsv(8) process for each subdirectory, or symlink to a directory, in the services directory dir, up to a limit of 1000
subdirectories, and restarts a runsv(8) process if it terminates. runsvdir skips subdirectory names starting with dots. runsv(8) must be
in runsvdir's PATH.
At least every five seconds runsvdir checks whether the time of last modification, the inode, or the device, of the services directory dir
has changed. If so, it re-scans the service directory, and if it sees a new subdirectory, or new symlink to a directory, in dir, it starts
a new runsv(8) process; if runsvdir sees a subdirectory being removed that was previously there, it sends the corresponding runsv(8)
process a TERM signal, stops monitoring this process, and so does not restart the runsv(8) process if it exits.
If the log argument is given to runsvdir, all output to standard error is redirected to this log, which is similar to the daemontools'
readproctitle log. To see the most recent error messages, use a process-listing tool such as ps(1). runsvdir writes a dot to the read-
proctitle log every 15 minutes so that old error messages expire.
OPTIONS -P use setsid(2) to run each runsv(8) process in a new session and separate process group.
SIGNALS
If runsvdir receives a TERM signal, it exits with 0 immediately.
If runsvdir receives a HUP signal, it sends a TERM signal to each runsv(8) process it is monitoring and then exits with 111.
SEE ALSO sv(8), runsv(8), runsvchdir(8), runit(8), runit-init(8), chpst(8), svlogd(8), utmpset(8), setsid(2)
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
runsvdir(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)