(Exception ("parse_error", reason)))
outchan
+let postgresqlconnectionstring =
+ try
+ Sys.getenv "POSTGRESQL_CONNECTION_STRING"
+ with
+ Not_found -> "host=mowgli.cs.unibo.it dbname=helm_mowgli_new_schema user=helm"
+;;
+
let main () =
try
Sys.catch_break true;
broker_id :=
Some (Hbugs_tutors_common.register_to_broker
my_own_id my_own_url "FOO" "Search_pattern_apply tutor");
+ Mqint.set_database Mqint.postgres_db ;
+ Mqint.init postgresqlconnectionstring ;
Http_daemon.start'
- ~addr:my_own_addr ~port:my_own_port ~mode:`Thread callback
+ ~addr:my_own_addr ~port:my_own_port ~mode:`Thread callback;
+ Mqint.close ()
with Sys.Break -> () (* exit nicely, invoking at_exit functions *)
;;