icpc-webprint/example.service

20 lines
537 B
Desktop File

#
# 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