cat << 'EOF' > /etc/systemd/system/shopeebot.service
[Unit]
Description=Shopee Affiliate Bot API
After=network.target

[Service]
User=root
WorkingDirectory=/root/botAffilate/serverPython
ExecStart=/root/botAffilate/venv/bin/python main.py
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
EOF

systemctl daemon-reload
systemctl restart shopeebot
systemctl status shopeebot
