Commit 1b480009 authored by Kirill Smelkov's avatar Kirill Smelkov

X Sync with redis-unixsock

parent ec01997c
......@@ -9,12 +9,10 @@ def main(args):
port = int(args['port'])
unixsocket = args['unixsocket']
try:
#pool = redis.ConnectionPool(host=host, port=port, unix_socket_path=unixsocket, db=0)
#r = redis.Redis(connection_pool=pool)
r = redis.Redis(host=host, port=port, unix_socket_path=unixsocket, db=0)
r.publish("Promise-Service","SlapOS Promise")
r.connection_pool.disconnect()
sys.exit(0)
except Exception, e:
print str(e)
sys.exit(1)
sys.exit(1)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment