|
@@ -1,9 +1,12 @@
|
|
|
#!/usr/bin/env python
|
|
|
+import sys
|
|
|
+sys.path.append("wrappers")
|
|
|
+
|
|
|
from modelverse import *
|
|
|
from subprocess import Popen, PIPE
|
|
|
import json
|
|
|
|
|
|
-init(address)
|
|
|
+init(sys.argv[1])
|
|
|
login("test_service", "my_password")
|
|
|
|
|
|
def lola_service(port):
|
|
@@ -29,12 +32,9 @@ def lola_service(port):
|
|
|
service_set(port, path.rstrip(','))
|
|
|
|
|
|
service_register("lola", lola_service)
|
|
|
-print("Registered")
|
|
|
|
|
|
while raw_input() != "STOP":
|
|
|
# Stay active, as we shouldn't exit while the service is running!
|
|
|
pass
|
|
|
-print("Stopping")
|
|
|
|
|
|
service_stop()
|
|
|
-print("Service halted")
|