Skip to content

CrowdWare/shift-webservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install pre

pip install pycryptodome
pip install flask
pip install mysql-connector-python

Create and maintain a websercice using uswgi

This guide is for internal usage only.
If you want to run your own webservice then you have to alter some paths.

Creation

  • Create or copy the file shift.service to /etc/systemd/system
  • Create or copy the file uswgi.ini to /home/shift/webservice

Start the service

sudo systemctl daemon-reload  
sudo systemctl start shift.service  

Stop the service

sudo systemctl daemon-reload  
sudo systemctl stop shift.service  

Reload the service

sudo systemctl daemon-reload  
sudo systemctl restart shift.service  

truncate the log file

sudo truncate -s 0 /var/log/shift.log  

archivate log file

mv /var/log/shift.log /var/log/shift_$(date +%Y%m%d).log  

Releases

No releases published

Packages

No packages published