CPURC(8) System Manager's Manual CPURC(8)NAME
cpurc, termrc - boot script
SYNOPSIS
cpurc
termrc
DESCRIPTION
After the kernel boots, it execs /boot (see root(3)), which in turn execs /$cputype/init. Init(8) sets the $service environment variable
to cpu or terminal, and then invokes the appropriate rc script to bring the system up.
Based on the values of $sysname and $terminal these scripts start appropriate network processes and administrative daemons and enable swap-
ping. Cpurc sets /env/boottime to the time cpurc was executed and /env/NPROC to a value suitable for parallel compilation in mk(1).
These files should be edited by local installations to reflect the configuration of their systems.
SOURCE
/rc/bin/cpurc
/rc/bin/termrc
SEE ALSO srv(4), namespace(6), dkconfig(8), init(8), listen(8)CPURC(8)
Check Out this Related Man Page
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)
Dear Guys ,
i installed sun solaries 8 for intel platform .
now i want to edit root env or init. files in order to add the follwing :
EDITOR=vi
export PATH EDITOR
export PS1=`uname -n`:\$PWD\>
set -o vi
alias dir="ls -la|more"
alias c=clear
stty erase "^H"
what file i have to... (13 Replies)
I saw the following script in an earier post in this forum. Changed a little bit and trying it in my env but getting errors. Pls help in debuggin this.
(1)
#!/bin/ksh
DFR='df -g filesystempath|grep filesystem|awk '{print $4}''
echo $DFR
-----------------------
scriptname: }: not found.... (3 Replies)
as root on test files with
!#/bin/bash -x
I get my env echoed back to the screen, Have I wrote code that
is dangerous??
this dosen't show up if ran as non root user
heres what I get back:
test> ./rootf off
+ alias 'rm=rm -i'
+ alias 'cp=cp -i'
+ alias 'mv=mv -i'
+ ''
+ .... (5 Replies)
hi guys!
I trying to use su in script
su
cp somed /etc/init.d/
I get the prompt but the the cp is not executed having root acces so it fails...
any idea?
thanks
george (3 Replies)
Hi
I am having a script which sets the application environment. In this script i am sourcing the applications env file, when i am debugging the script i see its executing all the environment values and all the variable values are set properply.
Once this main shell script executes, then... (4 Replies)
Hi All,
Am using the below command to start my application using the root user
su - bin -c "/home/bin/test/start.sh"
but am getting the error becaue i have set some environment varibales in bin .profile
when i execute the command start.sh by logging directly into bin account it's... (8 Replies)
Hi
I have a /bin/sh script, that when executed changes some env vars (like $path).
How can I source the modified cshrc?
I dont want to logout and login to have the modifed path.
sh doesnot recognize source as I understand it is defined only in bash
rehash also doesnot work..
Any ideas... (10 Replies)
I have a list of servers that I need my script to ping however this list also has the env they belong too such as SIT, PRD, warehouse and so on.
The break character for each section is :
A value in my list would look like this...
brutus.grhq.xxx.com:warehouse
Where brutus.grhq.gfs.com is... (13 Replies)
Hello Everybody..
I've written the script that kick off through CRON job and kill itself by specific time.
I've start time and end time specify in env file.
i.e
START_TIME=1500 (03:00 PM)
END_TIME=0600 (06:00 AM)
It always works good if my START_TIME is before midnight and my... (4 Replies)
I have created a script file named 'start-jboss'
-------------------------------------------------
#!/bin/sh
# For starting Jboss
JAVA_HOME=/home/argole/jdk/jdk1.6.0_10
export JAVA_HOME
cd /home/argole/server/jboss-4.2.0.GA/bin
echo "Starting JBOSS server"
nohup ./run.sh -c... (25 Replies)
Hi There!
I'm writing this LSF script to make it easier to send jobs to a cluster when varying certain parameters. At one point I'd like to do something like:
set NPROC = 10
and later on call BSUB using something like:
#BSUB -n $NPROC
unfortunately for me, this throws an error:
... (4 Replies)
HI,
We are using two shell scripts, script.sh,env.sh, where env.sh will be called inside script.sh. The variable inside env.sh is used as $var in script.sh.But while running the script its not identifying that variable. Is there any permission needed to call a script inside another script.
... (3 Replies)
greetings,
i have a sh script that calls a python script. the sh script sets an env variable BIN:
export BIN=bin64i need to get that BIN variable's value and use it within this python script. anyone know how to do this? thanx in advance. (5 Replies)
please let me know the error in following script ::::::::::
#!/usr/bin/env sh
set -x
x=0
l=0
if &&
then
echo "success_rate =0"
else
success_rate=$(echo "scale=4 ; ($l/$x*100)" | bc)
fi (4 Replies)