1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00
srs/trunk/scripts/unstall.sh
2019-10-05 20:43:04 +08:00

15 lines
322 B
Bash
Executable file

#!/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"