Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

solaris 8 start up scripts in debug mode

Status
Not open for further replies.

ac325ci

MIS
Jan 16, 2004
128
0
0
US
hi.. which file should i modify to be able to put the scripts in -x debug mode when bootin the machine into multi-user.. i looked at /etc/inittab and modified /sbin/rc6 and put an -x on the script but didnt do anything.. thanks in advance
 
are you wanting /etc/rc3.d and/or /etc/rc2.d?
 
The scripts themselves are in the [tt]/sbin[/tt] directory. The script for full multiuser mode is [tt]/sbin/rc3[/tt]. You could add the [tt]-x[/tt] to it's first line.

Keep in mind this will only cause that script to run debug, not all of the startup scripts.
 
If you want to watch each script running I think you can modify the /sbin/rc? file. In the case statement it looks like it calls a shell to run each startup script. It shows as follows on Solaris 8:

Code:
/sbin/sh $f start

Change it to:

/sbin/sh -x $f start
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top