Skip to content

Commit

Permalink
Добавлен пример Systemd-службы
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterGroosha committed Jul 30, 2022
1 parent 0c630da commit 51a7f9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions casino-bot.example.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Telegram Casino Bot
After=network.target redis.service

[Service]
Type=simple
WorkingDirectory=/home/user/casino-bot
ExecStart=/home/user/casino-bot/venv/bin/python -m bot
KillMode=process
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

0 comments on commit 51a7f9b

Please sign in to comment.