INIT(8) System Manager's Manual INIT(8)NAME
init - initialize machine upon booting
SYNOPSIS
/$cputype/init [ -ctm ] [ command ... ]
DESCRIPTION
Init initializes the machine: it establishes the name space (see namespace(4) and newns in auth(2)), and environment (see env(3)) and
starts a shell (rc(1)) on the console. If a command is supplied, that is run instead of the shell. On a CPU server the invoked shell runs
cpurc(8) before accepting commands on the console; on a terminal, it runs termrc and then the user's profile. Options -t (terminal) and -c
(CPU) force the behavior to correspond to the specified service class. Otherwise init uses the value of the environment variable $service
to decide the service class.
Init sets environment variables $service (either to the incoming value or according to -t or -c), $objtype (to the value of $cputype),
$user (to the contents of #c/user), and $timezone (to the contents of /adm/timezone/local).
With option -m init starts only an interactive shell regardless of the command or service class.
On a CPU server, init requires the machine's password to be supplied before starting rc on the console.
Init is invoked by boot(8), which sets the arguments as appropriate.
SOURCE
/sys/src/cmd/init.c
SEE ALSO rc(1), auth(2), boot(8)INIT(8)
Check Out this Related Man Page
service(8) System Manager's Manual service(8)NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working
directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start
command.
service --status-all runs all init scripts, in alphabetical order, with the status command.
If the init script file does not exist, the script tries to use legacy actions. If there is no suitable legacy action found and COMMAND is
one of actions specified in LSB Core Specification, input is redirected to the systemctl. Otherwise the command fails with return code 2.
FILES
/etc/init.d
The directory containing System V init scripts.
ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.
SEE ALSO chkconfig(8), ntsysv(8), systemd(1), systemctl(8), systemd.service(5)
Jan 2006 service(8)
I had this problem before but it started working OK for a while. I can create a new profile but when I launch the console for that user it does not show the $ prompt. It shows for su and I tried to set the terminal but I am not sure if I did it correctly since it does not work still. The... (9 Replies)
Can anybody please help me on how to optimize following command as it use up a lot of CPU :
tail -f $DIR3$DATE4.log |\
while read line
do echo $line | egrep "Processing incoming SMS message" | sed 's/\,/ /g' \
| awk '{print $2}' >> $DIR2/LIST1.$DATE4.log && echo... (6 Replies)
Hi Expert,
I have encountered some problem with my SUN system. Everytime when i issue command #init 6 OR #init 0 it just logout and prompt for login again instead of rebooting the server when run init 6 and system shutdown when run init 0..
I can only reboot the system using reboot ... Was... (6 Replies)
I am working on a Unixware 7.1.1 system that seems to have suddenly started having huge telnet login slowdowns.
I am theorizing it might be due to processor load an I wanted to know what INIT should be using on average in terms of processor power. For me it is at least at 15%.
I also want to... (10 Replies)
We have an old k class server that we would like to use as a testbed for our oracle application. However, it is not booting properly - fiailing the self boot test (light at the back of server is blinking). On the little window on the front of server i see the following message about console (?). ... (9 Replies)
Hi,
Is it possible to set the two time formats in a single machine. My machine time is in EST and the logs are in PST. What would be the issue, and how to make change of this.? (5 Replies)
Hi All,
I am getting an error message when I execute command “zlogin -C sunsrv4z5” on my root server.
INIT: Cannot stat /etc/inittab, errno: 2
INIT: Cannot stat /etc/inittab, errno: 2
As per my analysis it seems that some files inside /etc folder are deleted.
This server was... (14 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)
How would i force The server console to be locked automatically after 5 minutes ?
I want it to happen for X as well as terminal session of the machine.
My Linux distribution details.
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:... (11 Replies)
Hi there :)!
I've set up my own openSuse server and It's working perfectly, but... Some stuff has to be executed at boot, but it won't. I've tried boot.local and init.d but nothing works. This are the things that needs to be execute:
# Free the SSH port
killall xinetd
# Run subversion... (8 Replies)
Hi,
OS: Oracle Enterprise Linux 4
My system was working normal then when i reboot the machine the system started but it is halting the boot sequence with this message
"INIT: Id "x" respawning too fast: disabled for 5 minutes"
Q: any solution to this reply is highly appreciated . (5 Replies)
HI All,
I have a .xls file , in which I have multiple worksheets , I need to remove all the worksheets except the worksheet by name CDR_LOAD_STATS, how can I do this in unix.
Please guide me.
Regards,
Deepti (7 Replies)
what is the best way to get to know the terminal environment and command line in the Mac OS X.
is it as simple as learning the bash shell, or any shell.
I have worked in the Terminal environment in the past with some C programming and some command line basics. And with that i had to dig thru... (5 Replies)
Hi All,
I am connecting to SunOs 5.8 server from windows machine through putty. My problem is commands are not showing any colours results. I want to see 'ls' command should list directories in 'red' and files in 'green' etc. How to do it . Please help.
Also How to enable syntax colouring in... (6 Replies)
Hi All,
I was trying a shell script. I was unable to store file contents to a variable in the script. I have tried the below but unable to do it.
Input = `cat /path/op.diary`
Input = $(<op.diary)
I am using ksh shell. I want to store the 'op.diary' file contents to the variable 'Input'... (12 Replies)