Wowza Community

Change instance timezone on startup

Hi All,

I’m facing a situation where I need to ensure that all of my EC2 instances are using eastern time regardless of which region the instance is started in.

Is there a way I can reconfigure the OS clock through a startup script, before Wowza starts up?

Thanks,

Jay

Look at the startup package system described in EC2 user’s guide. You can run a script on server launch.

Charlie

Yup - put a short script in your package’s scripts folder that contains the following command:

#!/bin/bash
ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime

and then call the script from the startup.xml:

                <RunScript>
                        <Script>scripts/set_tz.sh</Script>
                </RunScript>

Some good info here on setting timezones in Linux (the EC2 Wowza image is based on Fedora/Red Hat): http://www.cyberciti.biz/faq/howto-linux-unix-change-setup-timezone-tz-variable/

-Ian

Right on. Thanks for the help Ian.