server-config/systemd_units/uno-bot.service
Harsh Shandilya 2b41b88b44
systemd: Bump Swap limit to 1
systemd now ignores 0 values for these.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-09-10 21:05:08 +05:30

24 lines
444 B
Desktop File

[Unit]
Description=UNO Telegram bot service
After=network.target
[Service]
Restart=on-abort
Type=simple
User=bot
WorkingDirectory=/home/bot/mau_mau_bot
ExecStart=/home/bot/mau_mau_bot/venv/bin/python bot.py
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
PrivateTmp=true
PrivateDevices=false
ProtectSystem=full
CPUWeight=10
CPUQuota=10%
IOWeight=20
MemorySwapMax=1
[Install]
WantedBy=multi-user.target