Closed ytsdayou closed 1 year ago
I solved it myself, and I will share it with friends who need it. Modify the /lib/systemd/system/srs.service file, and add multi-user.target after After=.
` [Unit] Description=The SRS Media Stream Cluster After=network.target multi-user.target
[Service] Type=forking Restart=always ExecStart=/etc/init.d/srs start ExecReload=/etc/init.d/srs reload ExecStop=/etc/init.d/srs stop
[Install] WantedBy=multi-user.target `
TRANS_BY_GPT3
Description
Please description your issue here
SRS Version: v4.0 Server: Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-148-generic x86_64)
SRS Log:
/var/log/syslog:
Replay
Please describe how to replay the bug?
Step 1: Server reboot
Step 2: After restarting, manually executing the command
sudo systemctl start srs
will be successful.Expect
I expect to be able to restart successfully every time after rebooting.
TRANS_BY_GPT3