[Unit] Description=ZimMed Telegram Bot Polling Service After=network-online.target Wants=network-online.target [Service] Type=simple User=zimmeduz Group=zimmeduz WorkingDirectory=/home/zimmeduz/telegram_bot Environment="PATH=/home/zimmeduz/virtualenv/telegram_bot/3.11/bin:/usr/local/bin:/usr/bin:/bin" ExecStart=/home/zimmeduz/virtualenv/telegram_bot/3.11/bin/python3 /home/zimmeduz/telegram_bot/app_polling.py Restart=always RestartSec=10 StandardOutput=append:/home/zimmeduz/telegram_bot/bot.log StandardError=append:/home/zimmeduz/telegram_bot/bot_error.log [Install] WantedBy=multi-user.target