Commit 80196185 authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

TangoServer: Make restart use internal start stop functions

parent 1c1184a6
......@@ -301,16 +301,10 @@ class ZmqDT():
def restart (self):
# stop service
p = subprocess.call(["systemctl", "stop", "zeromq-data-transfer@" + self.beamline + ".service"])
self.stop()
# start service
p = subprocess.call(["systemctl", "start", "zeromq-data-transfer@" + self.beamline + ".service"])
print "returncode=", p
if p == 0:
return "DONE"
else:
return "ERROR"
self.start()
def status (self):
......
......@@ -6,6 +6,7 @@ After=network-online.target
[Service]
TimeoutStartSec=0
WorkingDirectory=/root/zeromq-data-transfer
User=root
ExecStart=/root/zeromq-data-transfer/src/sender/DataManager.py --verbose --configFile /root/zeromq-data-transfer/conf/%i.conf
[Install]
......
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