Files
botAffilate/serverPython/services
T

22 lines
428 B
Plaintext

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/serverPython/venv/bin/python main.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable shopeebot
systemctl start shopeebot