31 lines
619 B
Desktop File
31 lines
619 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
|
|
|
|
# Security
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
NoNewPrivileges=true
|
|
ProtectControlGroups=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
PrivateDevices=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|
|
SystemCallArchitectures=native
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|