1829347 Members
4738 Online
109991 Solutions
New Discussion

Need to make a tool

 
Hunki
Super Advisor

Need to make a tool


I need to make a tool ( through the use of unix scripts ) which can shutdown the app and install the application and start it. Also additional capabilities of rolling back the install if the need be.

Has someone done similar activity and what new ideas can you suggest in terms of additional features , look etc ...please let me know.

Thanks.
2 REPLIES 2
Mel Burslan
Honored Contributor

Re: Need to make a tool

Your problem description is extremely vague.

But in general it goes like this:

use the application vendor provided method to stop the application
e.g.
/sbin/init.d/myappcontrol stop

copy the contents of application directory to an archiving spot
e.g. cp -R /my/application/dir /my/archive/dir/todaysdate

use a script provided by your vendor or swinstall to install the new version of the application

use the application vendor provided method to start the application
e.g.
/sbin/init.d/myappcontrol start

If the doo-doo hits the fan, copy the contents of the archive directory you just created over to the application directory, provided this can restore the old version functionality. Sometimes this is not possible, due to less than perfect coding skills of the application developers and packagers.

I am sure if you can provide the name of the application, someone who has done what you are looking for, can help you with more accurate terms.

HTH
________________________________
UNIX because I majored in cryptology...
James R. Ferguson
Acclaimed Contributor

Re: Need to make a tool

Hi Hunki:

To understand and follow the standard HP-UX startup and shutdown paradigm see this (still valid) whitepaper:

http://docs.hp.com/en/934/startup.pdf

...or reference the 'rc(1M)' manpages:

http://docs.hp.com/en/B2355-60105/rc.1M.html

For creating an installation and removal mechanism, you should look at the Software Package Builder (SPB) product:

http://docs.hp.com/en/5187-4539/5187-4539.pdf

http://www.docs.hp.com/en/SPB/

Regards!

...JRF...