service, readme & bug fixes in TX start logic

This commit is contained in:
2025-05-15 16:21:47 +03:00
parent 5ff7354dc5
commit 0e6f6058a0
5 changed files with 140 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
#
# NOTICE! Replace PATH_TO_SCRIPT with required directory!
# Paste content of this file into /etc/systemd/system/YOUR_NAME.service
#
# Suggested names for service: print-rx.service & print-tx.server
# REMEMBER to create virtual environment before using script (read README.md)
[Unit]
Description=Print Server TX/RX server script.
After=network.target
[Service]
User=www-data
Group=www-data
WorkingDirectory=PATH_TO_SCRIPT
ExecStart=PATH_TO_SCRIPT/.venv/bin/gunicorn wsgi_back:app -c gunicorn.py
[Install]
WantedBy=multi-user.target