Operating System - HP-UX
1748157 Members
4004 Online
108758 Solutions
New Discussion

rc scripts not starting while server reboots

 
Bill Hassell
Honored Contributor

Re: rc scripts not starting while server reboots

/etc/profile is not run when booting up. /etc/profile is designed for people that login. When your script is run as a start up script, you must set the PATH variable. At the beginning of your script, add this statement:

export PATH=$(cat /etc/PATH)

That will propagate the PATH variable to all the sub-processes.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: rc scripts not starting while server reboots

Also check to make sure that /usr/bin is mounted when you run your script.