Tom.
We use our ‘own’ HACMP method for startup, but we ensure that a ‘profile’ is sourced at the start of any script to ensure the correct environment for any user.
eg
. /hci/InfoHEALTH/bin/profile
If you ensure that the ‘hci’ environment is set correctly and then change your ‘su hci …’ command to ‘su – hci …’ then (manual quote) ‘Specifies that the process environment is to be set as if the user had logged in to the system using the login command. Nothing in the current environment is propagated to the new shell.’
Good Luck