Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packaging/deb-in/mysql-packagesource-server.postrm.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ];
if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ];
then
. /usr/share/debconf/confmodule
fi
Expand All @@ -36,7 +36,7 @@ place_upstart_job_back () {
}

get_pcount () {
PSCOUNT=$(ps -ef | grep "/usr/sbin/mysqld" | wc -l)
PSCOUNT=$(pgrep -c -f "/usr/sbin/mysqld" 2>/dev/null)
echo "${PSCOUNT}"
}

Expand All @@ -46,7 +46,7 @@ server_stop () {
while :; do
COUNT=$(( COUNT+1 ))
echo -n .
if [ "${PSCOUNT}" -eq 1 ];
if [ "${PSCOUNT}" -eq 0 ];
then
echo
break
Expand Down