Creating a System Restart Script for HP-UX

Create a script that executes when the operating system starts or shuts down.

  1. As system administrator must create a script that executes when the operating system starts or shuts down.
    You can model your script after the HP-UX template file /sbin/init.d/template. You cannot edit commands in the /etc/rc file in HP-UX versions 10.0 and later. For more information about rc (1M), see the HP-UX manual page.
  2. After creating the start-up and shutdown script, place it in the directory /sbin/init.d.
    Execution scripts in this directory have symbolic links to directories /sbin/rcn.d where n is the system run level. The linked scripts in /sbin/rcn.d control the sequencing order of the execution scripts.