feedback/systemd/user/feedback.service

15 lines
344 B
SYSTEMD
Raw Normal View History

2025-01-05 02:50:54 +03:00
[Unit]
Description=...
After=network.target network-online.target
[Service]
Type=exec
Environment=APP_DIR=/home/user/feedback_bot
Environment=VIRTUAL_ENV=${APP_DIR}/venv
Environment=PYTHONPATH=${APP_DIR}
Environment=PATH=${VIRTUAL_ENV}/bin:$PATH
ExecStart=/bin/bash -c '${VIRTUAL_ENV}/bin/python3 -m app'
[Install]
WantedBy=multi-user.target