[Unit]
Description=Domovoy Bot Monitor - Auto-restart service
After=network.target domovoy-bot.service

[Service]
Type=simple
User=matrixhasyou
Group=matrixhasyou
WorkingDirectory=/home/matrixhasyou/domovoy_bot
ExecStart=/bin/bash /home/matrixhasyou/domovoy_bot/bot-monitor.sh
Restart=always
RestartSec=10
StandardOutput=append:/home/matrixhasyou/domovoy_bot/logs/monitor.log
StandardError=append:/home/matrixhasyou/domovoy_bot/logs/monitor.log

# Security
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
