Is there a way to debug the startup on Solaris?

Is there a way to debug the startup on a VT100 running Solaris 5? I have a problem related to file attributes that are resetting to there prior settings when the machine reboots.

have you tried a "boot -v" from ok prompt?

Whatever the Solaris version (there is no Solaris 5 by the way), you can trace scripts including startup ones.

Add these lines at the beginning of the ones that you want to trace:

exec >> /var/tmp/startup.log 2>&1
set -x

Thanks... I will give it a try

---------- Post updated at 07:25 PM ---------- Previous update was at 03:37 PM ----------

the box is rebooting but is unable to connect to the database, prior to rebooting the box I modify the permissions for the db and log files from r to rw, then once the box reboots the permissions devert back to r only, I am thinking there is a startup script that is changing the permissions but I can't find where it is...