Commit 40ad459b authored by Manuela Kuhn's avatar Manuela Kuhn

run control server as user hidra

parent 40530dff
......@@ -6,6 +6,7 @@ After=network-online.target
[Service]
TimeoutStartSec=0
WorkingDirectory=/opt/hidra
User=hidra
ExecStart=/opt/hidra/src/hidra_control/hidra_control_server.py --beamline %i --verbose
[Install]
......
......@@ -538,7 +538,7 @@ def call_hidra_service(cmd, beamline, det_id, log):
if cmd == "status":
return subprocess.call(["systemctl", "is-active", svc])
else:
return subprocess.call(["systemctl", cmd, svc])
return subprocess.call(["sudo", "systemctl", cmd, svc])
# systems using init scripts
elif os.path.exists("/etc/init.d") \
......
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