mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
322 B
Bash
16 lines
322 B
Bash
#!/bin/bash
|
|
|
|
if [[ -d /usr/lib/systemd/system ]]; then
|
|
systemctl disable srs
|
|
systemctl stop srs
|
|
rm -f /usr/lib/systemd/system/srs.service
|
|
rm -f /etc/init.d/srs
|
|
else
|
|
/sbin/chkconfig srs off
|
|
/sbin/chkconfig --del srs
|
|
/etc/init.d/srs stop
|
|
rm -f /etc/init.d/srs
|
|
fi
|
|
rm -rf /usr/local/srs
|
|
echo "SRS uninstalled"
|