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 GTFS-realtime app on onebusaway.forest.usf.edu to auto-start via Windows Service #2

Closed barbeau closed 11 years ago

barbeau commented 12 years ago

We are running GTFS-realtime software on a virtualized USF server at onebusaway.forest.usf.edu out of the USF IT data center.

GTFS-realtime software is started by executing a .bat file here on the server: C:\OneBusAway\GTFS-realtimeGenerator\application\cutr-gtfs-realtime-hart-autorun.bat

GTFS-realtime software should be set up to use a Windows Service to execute this .bat file.

Name of the service would be “GTFS-realtimeGenerator”.

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 "GTFS-realtimeGenerator" which executes C:\OneBusAway\GTFS-realtimeGenerator\application\cutr-gtfs-realtime-hart-autorun.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.