17 lines
340 B
Desktop File
17 lines
340 B
Desktop File
[Unit]
|
|
Description=Codex Server Admin Telegram Bot
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/opt/codex-tg-bot
|
|
EnvironmentFile=/etc/codex-tg-bot/.env
|
|
ExecStart=/opt/codex-tg-bot/venv/bin/python -m bot.main
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|