diff --git a/trunk/scripts/unstall.sh b/trunk/scripts/unstall.sh index 685dc82b8..d65809bb7 100755 --- a/trunk/scripts/unstall.sh +++ b/trunk/scripts/unstall.sh @@ -1,7 +1,15 @@ #!/bin/bash -systemctl disable srs -systemctl stop srs +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 -rm -f /etc/init.d/srs echo "SRS uninstalled"