Problem
During bootup, I see an error message similar to the following:
prc_sync: script (S##name) failed to complete in 120 seconds
Cause
The script is not able to finish in the allotted time given for
execution. The file /etc/rc2 contains the default time for each
script to execute. If a script cannot terminate within this time
frame, the system is notified. Solution
Follow these steps:- Go to the /etc directory:#cd /etc- With your favorite editor, edit the rc2 file.- Search for the line:/etc/prc_sync /etc/rc2.d 120 start- Change the 120 to a higher number, for example, 300. This should
give the script sufficient time to execute. If this is still not
enough time, you can re-edit the file to increase the number.NOTE: If increasing the time the script takes to execute does not resolve
the problem, this is an indication that there is something else
preventing the script to fully execute. In this case, you will need
to set the debug flag in the script to further analyze what is
causing the problem.To set the debug flag, edit the shell script file with your favorite
editor. Add the following on the first uncommented line:set -xSetting the debug flag in the script file will not display the
debug information to the screen. The information gets saved in
the /etc/rc2.d/messages/script_file_name.log. Since the script
does not terminate, you will need to reboot, go into single-user
mode and take a look at the file. See also
man sh(C), man ksh(C), man csh(C)