mmbot/mmbot — pull request #81 by PeteGoo (2014-01-25 00:38:24+00:00)
Title: Move run as service to an explicit parameter so that Azure Web Jobs work

Azure Web Jobs allow users to upload a zip file through the management portal and Azure will look for an exe, py, bat, cmd etc in this zip file and run it once, on schedule or (in mmbot's case) continuously.

http://www.hanselman.com/blog/IntroducingWindowsAzureWebJobs.aspx

This is a pretty cool feature that can be used in conjunction with the relay router to have mmbot hosted in azure with minimal fuss. Downloading scripts from the catalog etc seems to still work.

Unfortunately you can't specify command line arguments and the exe is run in a non-interactive context so we either force a bat/cmd file to be used for WebJobs or we make the "run as service" explicit via command line parameters. This pull request does that 2nd option. Will need to update docs etc if we choose to merge this.