CUTR-at-USF / onebusaway-application-modules

OneBusAway, modified for a Tampa, Fl deployment
https://github.com/OneBusAway/onebusaway-application-modules/wiki
Other
2 stars 1 forks source link

Set XWiki on onebusaway.forest.usf.edu to auto-start via Windows Service #3

Closed barbeau closed 11 years ago

barbeau commented 12 years ago

Windows Service should be set up to start and stop an XWiki server running on the same machine on port 8081. Windows Service should be named “OBA_XWiki”

Here’s the file to start the XWiki server: C:\OneBusAway\XWiki\XWiki_Enterprise_4.2\start_xwiki.bat

And the file to stop the XWiki server: stop_xwiki.bat

barbeau commented 12 years ago

Sent request to Ali to configure this. Waiting on USF IT to give Ali access to server.

barbeau commented 11 years ago

Ali is working on this today, hopefully done soon.

barbeau commented 11 years ago

Ali determined the best way to get bat files to start on boot is via scheduled tasks. So, Ali has set up a task in Task Scheduler for this called "XWiki" which executes c:\OneBusAway\XWiki\XWiki_Enterprise_4.2\start_xwiki.bat "At system startup".

From Ali:

The best way I found to get the bat files to work on boot was via a scheduled task. There are third party apps that will also do the same thing but they are not open source/free. I tested both files on a test system and was able to confirm the wiki was working on boot because I was able to reach the xwiki web page on the test system from a different computer. I could not verify the GTFS file because I’m not sure how to test that it is working or not. The task for the GTFS file completed successfully though so im pretty sure it is. Ive setup both files as scheduled tasks on the onebusaway server the same way I did on the test system.
barbeau commented 11 years ago

When started under Ali's account, XWiki was empty (i.e., no wiki content). Switching it to run under my account seemed to fix this and show the wiki content, presumably since it was initially installed/configured/run under my account.