feat: use systemd to manage and deploy calephant
Description
Use Systemd with Calephant, similarly to pycalibration
Changes Made
Added calephant.service file in the new services directory
Screenshots
Related Issues
Tests
This is running on xcaltst@max-exfl-cal002
I have added this content in ~/.config/systemd/user/calephant.service Then
- systemctl --user daemon-reload
- systemctl --user enable calephant.service
- systemctl --user start calephant.service
I have added aliases as well for calephant
# calephant systemd management
alias calephant-up='systemctl --user start calephant.service'
alias calephant-down='systemctl --user stop calephant.service'
alias calephant-status='systemctl --user status calephant.service'
alias calephant-logs='journalctl --user --pager-end -u calephant.service'
Additional Notes
Before merging and deploying to production I have to set on a common structure on the directory and venv name. Currently they different between production and test
Merge Request Checklist
-
Code follows project coding guidelines. -
Documentation reflects the changes made. -
Unit tests are added or updated to cover the changes. -
The application runs without errors and the new functionality works as expected.
Edited by Karim Ahmed