Skip to content
Snippets Groups Projects
Commit 74b36ffd authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Use ExecStartPost to wait 1 second for errors after launching

parent 96b38db1
No related branches found
No related tags found
1 merge request!1045Add unit files to manage services with systemd
......@@ -6,6 +6,7 @@ PartOf=cal-services.target
Type=exec
WorkingDirectory=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/
ExecStart=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/.venv/bin/python -m webservice.job_monitor --log-level DEBUG
ExecStartPost=/usr/bin/sleep 1 # Pause to make errors in startup more obvious
Restart=on-failure
[Install]
......
......@@ -6,6 +6,7 @@ PartOf=cal-services.target
Type=exec
WorkingDirectory=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/
ExecStart=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/.venv/bin/python -m webservice.serve_overview
ExecStartPost=/usr/bin/sleep 1 # Pause to make errors in startup more obvious
Restart=on-failure
[Install]
......
......@@ -6,6 +6,7 @@ PartOf=cal-services.target
Type=exec
WorkingDirectory=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/
ExecStart=%h/deployments/development/git.xfel.eu/detectors/pycalibration/current/.venv/bin/python -m webservice.webservice --mode prod --log-level DEBUG
ExecStartPost=/usr/bin/sleep 1 # Pause to make errors in startup more obvious
Restart=on-failure
[Install]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment