Really Simple Scalr Script

12 views
Skip to first unread message

domhol

unread,
Mar 26, 2009, 2:06:19 AM3/26/09
to scalr-discuss
Hi all,

not sure how to write a script for this to implement in scalr. I just
need a script that would do the following, on instance start:

cd /usr/local/WowzaMediaServerPro/bin
./startup.sh

anyone know how to create that as a script to run when an instance is
launched automatically?

Thanks

Nickolas Toursky

unread,
Mar 26, 2009, 8:45:15 AM3/26/09
to scalr-...@googlegroups.com
Hi Dominic,

You should use Scalr scripting engine, create a script and associate
it with OnHostInit event.
Your script is almost ready, actually. You should prepend it with a
correct shebang - "#!/bin/bash" (without quotes) and it is ready to
use.

Nick

Alex Kovalyov

unread,
Mar 26, 2009, 8:50:20 AM3/26/09
to scalr-discuss
Look through existing shared scripts. - the best learning, IMHO.

On 26 мар, 14:45, Nickolas Toursky <hin...@gmail.com> wrote:
> Hi Dominic,
>
> You should use Scalr scripting engine, create a script and associate
> it with OnHostInit event.
> Your script is almost ready, actually. You should prepend it with a
> correct shebang - "#!/bin/bash" (without quotes) and it is ready to
> use.
>
> Nick
>

Donovan Bray

unread,
Mar 26, 2009, 9:57:44 AM3/26/09
to scalr-...@googlegroups.com
Put the line in rc.local. Or use the skeleton rc script to build one
specific to the app.

domhol

unread,
Mar 26, 2009, 5:44:52 PM3/26/09
to scalr-discuss
Thanks Nickolas, that was very easy and is now working a treat.

On Mar 26, 6:57 am, Donovan Bray <donno...@gmail.com> wrote:
> Put the line in rc.local. Or use the skeleton rc script to build one  
> specific to the app.
>
Reply all
Reply to author
Forward
0 new messages