startup script

Hi

I need the below script to be started whenever I reboot my aix server ?

 #cat cdbegin

/cdirect/cdunix/ndm/bin/cdpmgr -i /cdirect/cdunix/ndm/cfg/cbspsdb01/initparm.cfg

Please suggest how to add this to the startup ?

Have a look at the man page of "mkitab" (and "lsitab" and "rmitab" as well). These commands manipulate /etc/inittab.

I hope this helps.

bakunin

It's just personal taste, but the only reason I put anything into inittab would be if I want it to respawn if it dies. So another suggestion would be to put it into a file, make it executable, name it rc.cd or whatever you like, put it into /etc/rc.d/init.d and link it as S99cd in /etc/rc.d/rc2.d
Regards
zxmaus

1 Like