Technical article 105846

During bootup, I get "prc_sync: script failed to complete in 120 seconds".

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

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 -x
Setting 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)

From the Xinuos technical article database, record 105846. Reproduced with permission. The original is at www.sco.com/ta/105846, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.