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