pip install pycryptodome
pip install flask
pip install mysql-connector-python
This guide is for internal usage only.
If you want to run your own webservice then you have to alter some paths.
- Create or copy the file shift.service to /etc/systemd/system
- Create or copy the file uswgi.ini to /home/shift/webservice
sudo systemctl daemon-reload
sudo systemctl start shift.service
sudo systemctl daemon-reload
sudo systemctl stop shift.service
sudo systemctl daemon-reload
sudo systemctl restart shift.service
sudo truncate -s 0 /var/log/shift.log
mv /var/log/shift.log /var/log/shift_$(date +%Y%m%d).log