Shutdown script

Hi,

I am on Alpha Server with HP Tru64 system.
I wish to setup shutdown to automatically and cleanly shutdown informix during the shutting down of the system.
Ie. I was trying to use rc0.d to do this but failed.

Has anyone tried doing this before? I already have the script and linked it
to K03informix. Is this wrong?

Thanks and regards,