Sure. This works under Ubuntu 24.02. Note that on my system, I’ve installed the faces files in /var/www/html/RS_AI, rather than my home directory. You will need to modify for your own location. Your mileage may vary.
Create a text file and name it faces.service. It contains:
Description=Python VENV and service
ExecStart=/var/www/html/RS_AI/faceenv/bin/python3 /var/www/html/resourcespace/plugins/faces/scripts/faces_service.py --db-host=localhost --db-user=resourcespace_rw --db-pass=password
WantedBy=multi-user.target
Save the file to /etc/systemd/system and run the following commands:
sudo systemctl enable faces.service
sudo systemctl start faces.service
sudo systemctl status faces.service
The last command will tell you if the start was successful or display errors that occur.
Next task for me is the same thing for the CLIP AI plugin.
Jim