Hi,
Its easy, find out what runlevel you're on then add a script (copy & modify an existing one Snnnscriptname) on the specified directory
Commands are put in start) section whereas Informative messages are put in start_msg) if my memory is not failing ...
Hello Folks,
I have to restore from remote tape sun solaris 10. It has to have mirror raid.
I have to restore /,/usr, /var,/opt, /etc,/u01.
Could you please give me detailed steps to do the above?
I am new to solaris
Thanks
Ram (1 Reply)
As seen on Digg.com, here is my ip addressing article in full...
Original Subnetting in 11 Steps article
Subnetting in 11 Steps
There are a few things that you will need to know first. I personally use 11 rules that I learned from Mike Vana. Below you will find the 11 rules as well as... (1 Reply)
Hello,
I want to start learning Perl, but I need some expert's advice:) Could you recommend me any online manual or book to start with? I have some experience with bash and C, so I am not a complete newbie in programming. What's your advise to start with?
Thank you very much for your answers!
... (5 Replies)
Hey!
I'm working on a script that will add a user, create some configfiles, and add a crontab for the user.
The crontab looks like the following:
@reboot /home/user/program config.conf &
I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Hi All,
Can anybody tell that Where is to find simple and easy steps of ORACLE replication process?
Any help on this highly appreciated.
http://www.unix.com/images/misc/progress.gif Thanks. (1 Reply)
hi ..
i need procedure to install php on my solaris server..
i spent more than two weeks for this installation procedure..
but still couldn find a proper solution..
i have successfully enabled apache,tomcat,mysql,oracle ..
this is the only issue am having rite now and its bothering me a lot.. ... (3 Replies)
Can I do multiple passes in one step?
sed 's/<FONT face='\''Arial'\'' size='\''3'\''>//' $file > tmpfile.html ; mv tmpfile.html $file
sed 's/<FONT face='\''Courier'\'' size='\''3'\''>//' $file > tmpfile.html ; mv tmpfile.html $file
sed 's/<\/FONT>//' $file > tmpfile.html ; mv... (2 Replies)
Hi All,
I am working on a new server Dell which I need to install RH version 6.1. I need to document every thing I do on this server, how do I capture screen shot as I do the install?
I used to work on Sun Solaris, I can do this by connecting on COM port after that I had the console access... (2 Replies)
Discussion started by: samnyc
2 Replies
LEARN ABOUT X11R4
runlevel
RUNLEVEL(8) runlevel RUNLEVEL(8)NAME
runlevel - Print previous and current SysV runlevel
SYNOPSIS
runlevel [options...]
OVERVIEW
"Runlevels" are an obsolete way to start and stop groups of services used in SysV init. systemd provides a compatibility layer that maps
runlevels to targets, and associated binaries like runlevel. Nevertheless, only one runlevel can be "active" at a given time, while systemd
can activate multiple targets concurrently, so the mapping to runlevels is confusing and only approximate. Runlevels should not be used in
new code, and are mostly useful as a shorthand way to refer the matching systemd targets in kernel boot parameters.
Table 1. Mapping between runlevels and systemd targets
+---------+-------------------+
|Runlevel | Target |
+---------+-------------------+
|0 | poweroff.target |
+---------+-------------------+
|1 | rescue.target |
+---------+-------------------+
|2, 3, 4 | multi-user.target |
+---------+-------------------+
|5 | graphical.target |
+---------+-------------------+
|6 | reboot.target |
+---------+-------------------+
DESCRIPTION
runlevel prints the previous and current SysV runlevel if they are known.
The two runlevel characters are separated by a single space character. If a runlevel cannot be determined, N is printed instead. If neither
can be determined, the word "unknown" is printed.
Unless overridden in the environment, this will check the utmp database for recent runlevel changes.
OPTIONS
The following option is understood:
--help
Print a short help text and exit.
EXIT STATUS
If one or both runlevels could be determined, 0 is returned, a non-zero failure code otherwise.
ENVIRONMENT
$RUNLEVEL
If $RUNLEVEL is set, runlevel will print this value as current runlevel and ignore utmp.
$PREVLEVEL
If $PREVLEVEL is set, runlevel will print this value as previous runlevel and ignore utmp.
FILES
/run/utmp
The utmp database runlevel reads the previous and current runlevel from.
SEE ALSO systemd(1), systemd.target(5), systemctl(1)systemd 237RUNLEVEL(8)