关键步骤
git clone https://github.com/Syncplay/syncplay.gitcd syncplay
./syncplayServer.py记录一下 —salt 后的一串字母
自定义参数运行:密码、端口、密钥
./syncplayServer.py --password myPassword --port 4567 --salt WCRKULYHPV配置systemd服务
sudo vim /lib/systemd/system/syncplay.service填写
[Unit]
Description=Syncplay Server
After=network.target
[Service]
WorkingDirectory=/home/syncplay/syncplay
User=syncplay
Group=syncplay
Type=simple
ExecStart=/home/syncplay/syncplay/syncplayServer.py --salt WCRKULYHPV --port 4567 --password myPassword
ExecStop=/bin/kill -s HUP $MAINPID
PIDFile=/home/syncplay/syncplay/syncplay.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target启动服务
systemctl daemon-reload
systemctl enable --now syncplay