Skip to content
Snippets Groups Projects

Add unit files to manage services with systemd

Merged Thomas Kluyver requested to merge systemd into master
1 unresolved thread
Files
4
+ 13
0
[Unit]
Description=XFEL offline calibration Slurm job monitor
PartOf=cal-services.target
[Service]
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]
WantedBy=cal-services.target
Loading