Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Created May 7, 2012 12:12
Show Gist options
  • Save chgeuer/2627457 to your computer and use it in GitHub Desktop.
Save chgeuer/2627457 to your computer and use it in GitHub Desktop.
sample1
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<ServiceDefinition xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" name="WindowsAzureProject">
<WorkerRole name="WorkerRole1" vmsize="Medium">
<Startup>
<!-- Sample startup task calling startup.cmd from the role's approot folder -->
<Task commandLine="util/.start.cmd startup.cmd" executionContext="elevated" taskType="simple">
<Environment>
<Variable name="BASE">
<RoleInstanceValue xpath="/RoleEnvironment/CurrentInstance/LocalResources/LocalResource[@name='TC']/@path"/>
</Variable>
</Environment>
</Task>
</Startup>
<Runtime executionContext="elevated">
<EntryPoint>
<ProgramEntryPoint commandLine="run.cmd" setReadyOnProcessStart="true">
<Environment>
<Variable name="BASE">
<RoleInstanceValue xpath="/RoleEnvironment/CurrentInstance/LocalResources/LocalResource[@name='TC']/@path"/>
</Variable>
</Environment>
</ProgramEntryPoint>
</EntryPoint>
</Runtime>
<Imports>
<Import moduleName="RemoteAccess"/>
<Import moduleName="RemoteForwarder"/>
</Imports>
<Endpoints>
<InputEndpoint localPort="8080" name="http" port="80" protocol="tcp"/>
</Endpoints>
<LocalResources>
<LocalStorage cleanOnRoleRecycle="false" name="TC" sizeInMB="500"/>
</LocalResources>
</WorkerRole>
</ServiceDefinition>
run.cmd
@ECHO OFF
util\whileproc.cmd %BASE%\java123___PUT_RIGHT_POATH_HERE 23\bin\java.exeü
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment