[Unit] Description=IISHKO Telegram bot (long polling) Documentation=file:/opt/iishko/deploy/README.md After=network-online.target Wants=network-online.target # The upstream gateway (New API / one-api) is an external service and has no unit # in this repo. If it runs on this host, add its unit name to After= below. [Service] Type=simple User=root WorkingDirectory=/opt/iishko # scripts/run.py loads /etc/iishko/runtime.env (real environment wins), adds the # repo directories to sys.path and starts bot/grok_bot.py. # The file is required: without it the unit fails fast instead of starting half-configured. ExecStart=/opt/iishko/.venv/bin/python /opt/iishko/scripts/run.py bot --env-file /etc/iishko/runtime.env Restart=always RestartSec=10 NoNewPrivileges=true PrivateTmp=true [Install] WantedBy=multi-user.target