init
This commit is contained in:
14
systemd/user/feedback.service
Normal file
14
systemd/user/feedback.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user