Initial Codex Telegram admin bot
This commit is contained in:
16
deploy/codex-tg-bot.service
Normal file
16
deploy/codex-tg-bot.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user