modifying start up steps

I tried search and didn't see anything - if there is a thread please point me to it -

I want to add a couple of statements to the start up steps basically to touch a file and set the owner & group on it.

I want this to happen every start-up. I haven't had sysadm class since HP-UX 9.x and I don't put anything as a rule in startup or shutdown.
I just don't recall what/where the startup steps are and I'm not sure which script/step to put it in nor exactly how to do that.

essentially I want this to happen:
touch /blah/blahh/myfile.dat
chown me:me /blah/blahh/myfile.dat

HP-UX B.11.23 U ia64

Or if there is a better way to accomplish this, I'm all ears.

thanks,
Lisa

Hi,
Its easy, find out what runlevel you're on then add a script (copy & modify an existing one Snnnscriptname) on the specified directory

who -r # check the runlevel, script is to be placed on /sbin/rc3.d (if runlevel 3) or /sbin/rc2.d if runlevel 2 ... 

Commands are put in start) section whereas Informative messages are put in start_msg) if my memory is not failing ... :smiley: