V0.1 de la migration vers systemd
This commit is contained in:
parent
b23c0dde53
commit
016ac85bc7
9 changed files with 142 additions and 24 deletions
17
systemd/kuby-bot.service
Normal file
17
systemd/kuby-bot.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Kuby Discord Bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=discord
|
||||
WorkingDirectory=__KUBY_DIR__
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecStart=__KUBY_DIR__/scripts/run_kuby_bot.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=append:/var/log/kuby/bot.log
|
||||
StandardError=append:/var/log/kuby/bot.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue