#!/bin/bashPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATHstop_service(){/etc/init.d/bt stop
if[-f "/etc/init.d/nginx"]; then
/etc/init.d/nginx stop >/dev/null2>&1
fi
if[-f "/etc/init.d/httpd"]; then
/etc/init.d/httpd stop >/dev/null2>&1
fi
if[-f "/etc/init.d/mysqld"]; then
/etc/init.d/mysqld stop >/dev/null2>&1
fi
if[-f "/etc/init.d/pure-ftpd"]; then
/etc/init.d/pure-ftpd stop >/dev/null2>&1
fi
if[-f "/etc/init.d/tomcat"]; then
/etc/init.d/tomcat stop >/dev/null2>&1
fi
if[-f "/etc/init.d/redis"]; then
/etc/init.d/redis stop >/dev/null2>&1
fi
if[-f "/etc/init.d/memcached"]; then
/etc/init.d/memcached stop >/dev/null2>&1
fi
if[-f "/www/server/panel/data/502Task.pl"]; then
rm -f /www/server/panel/data/502Task.pl
if[-f "/etc/init.d/php-fpm-52"]; then
/etc/init.d/php-fpm-52 stop >/dev/null2>&1
fi
if[-f "/etc/init.d/php-fpm-53"]; then
/etc/init.d/php-fpm-53 stop >/dev/null2>&1
fi
if[-f "/etc/init.d/php-fpm-54"]; then
/etc/init.d/php-fpm-54 stop >/dev/null2>&1
fi
if[-f "/etc/init.d/php-fpm-55"]; then
/etc/init.d/php-fpm-55 stop >/dev/null2>&1
fi
if[-f "/etc/init.d/php-fpm-56"]; then
/etc/init.d/php-fpm-56 stop >/dev/null2>&1
fi
if[-f "/etc/init.d/php-fpm-70"]; then
/etc/init.d/php-fpm-70 stop >/dev/null2>&1
fi
if[-f "/etc/init.d/php-fpm-71"]; then
/etc/init.d/php-fpm-71 stop >/dev/null2>&1
fi
fi
swapoff /www/swap
}
stop_service