Results 1 to 3 of 3

Thread: Where is the install script?

  1. #1
    Join Date
    Oct 2011
    Posts
    18

    Question Where is the install script?

    Hello,


    I was trying to know which scripts are executed before login when an Wowza 3 instance is launched. In this case I run a small "lickey" instance and using the "Get Info" in the AWS Management Console, I get this:

    cloud-init:  runcmd[  OK  ]
    
    Mounting other filesystems:  [  OK  ]
    
    Retrigger failed udev events[  OK  ]
    
    Starting sshd: [  OK  ]
    
    ntpdate: Synchronizing with time server: [  OK  ]
    
    Starting ntpd: [  OK  ]
    
    Starting vsftpd for vsftpd: [  OK  ]
    
    Starting sendmail: [  OK  ]
    
    Starting sm-client: [  OK  ]
    
    WowzaMediaServer: startingWowza Media Server 2 for Amazon EC2: Initialize Content: /media/ephemeral0/WowzaMediaServer
    Wowza Media Server 2 for Amazon EC2: Install
    Installer.doAmazonInstall
      userdata-url: http://169.254.169.254/2007-08-29/user-data
      userdata-destination: /opt/working/userdata.zip
      unzip: /opt/working/startup.zip
      result: /opt/working/default_3.0
    InstallParser.parseStartup: /opt/working/default_3.0/startup.xml
    InstallCommands.installFolder
      folder: /opt/working/default_3.0/wowza
      mergeSrc: /opt/working/default_3.0/wowza
      mergeTarget: /usr/local/WowzaMediaServer
    InstallCommands.runScript
      script: /opt/working/default_3.0/tuning/tune.sh
      temp(fix-linefeeds): /tmp/amzwow5821673329861682448.tmp
      workingDir: /opt/working/default_3.0
      env: AWSEC2_METADATA_AVAILABILITY_ZONE=
      env: AWSEC2_METADATA_INSTANCE_ID=i-27624144
      env: AWSEC2_METADATA_SECURITY_GROUPS=Media+Servers
      env: AWSEC2_METADATA_LOCAL_IPV4=10.114.182.156
      env: AWSEC2_METADATA_AMI_LAUNCH_INDEX=0
      env: AWSEC2_METADATA_PUBLIC_HOSTNAME=ec2-184-73-0-89.compute-1.amazonaws.com
      env: AWSEC2_METADATA_PUBLIC_KEYS=0=kpwms
      env: AWSEC2_METADATA_PRODUCT_CODES=
      env: AWSEC2_METADATA_INSTANCE_TYPE=m1.small
      env: AWSEC2_METADATA_ANCESTOR_AMI_IDS=ami-4b814f22
      env: AWSEC2_METADATA_RAMDISK_ID=
      env: AWSEC2_METADATA_PUBLIC_IPV4=184.73.0.89
      env: AWSEC2_METADATA_LOCAL_HOSTNAME=ip-10-114-182-156.ec2.internal
      env: AWSEC2_METADATA_AMI_MANIFEST_PATH=wowzamediaserveruseast1/3.0.3.07-i386.manifest.xml
      env: AWSEC2_METADATA_BLOCK_DEVICE_MAPPING=ami
    ephemeral0
    root
    swap
      env: AWSEC2_METADATA_RESERVATION_ID=r-cff015ae
      env: AWSEC2_METADATA_AMI_ID=ami-79834b10
      env: AWSEC2_METADATA_KERNEL_ID=aki-805ea7e9
    ***** script output start *****
    Tuning Wowza Media Server: m1.small
    Java Heap Size: 1000M
    ***** script output stop *****
    Updating file permissions...
      chmod 775 -R /usr/local/WowzaMediaServer
      chown wowza:wowza -R /usr/local/WowzaMediaServer
      chmod 775 -R /home/wowza
      chown wowza:wowza -R /home/wowza
    [  OK  ]
    
    Starting crond: [  OK  ]
    
    Starting atd: [  OK  ]
    
    Starting jexec servicesStarting yum-updatesd: [  OK  ]
    
    Running cloud-init user-scripts (none found)[  OK  ]
    
    
    Amazon Linux AMI release 2011.09
    Kernel 2.6.35.14-97.44.amzn1.i686 on an i686
    
    ip-10-114-182-156 login:
    I'm particularly interested in the highlighted bold text above. I need to know at which point runs that script and where is the file which triggers that.
    Last edited by Mr_LinDowsMac; 11-29-2011 at 07:11 PM. Reason: Adding details to my post

  2. #2

    Default

    It is run as part the WowzaMediaServer service. Follow the scripts that are run as part of /etc/init.d/WowzaMediaServer.

    Charlie

  3. #3
    Join Date
    Oct 2011
    Posts
    18

    Default

    Oh, I see that before.
    Also, I need to know if there is a lock file which avoids to run every time the install script, because obviously runs just the first time.

    Is '/var/lock/subsys/WowzaMediaServer' the lock file?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •