AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  post installation scripts

    Posted Fri March 16, 2018 06:22 AM

    Originally posted by: amandeepgautam


    I am packaging a executable using mkinstallp. The executabe will run as a service when installed. For same I have scripts in rc2.d so that it can start after boot. I would also like that the service starts after installation. For this I am trying to provide post-installation script. In the template for mkinstallp, I have the following section.

     

      ROOTLIBLPPFiles

        Post-installation Script: SCRIPT_BASE_DIR/post_install.sh

      EOROOTLIBLPPFiles

     

    I am using ROOTLIBLPPFiles because I want to run the executable as root. However, this does not work. What am I missing? Interestingly, the following works fine:

      USRLIBLPPFiles

        Post-installation Script: SCRIPT_BASE_DIR/post_install.sh

      EOUSRLIBLPPFiles