Files
botAffilate/serverPython/install_services.sh
T

22 lines
415 B
Bash

systemctl unmask shopeebot
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 enable shopeebot
systemctl start shopeebot