MySQL 강제종료가 안되네염... 도와주세요...

bamma09의 이미지

MySQL 4.1.11 을 컴파일해서 깔았습니다.

./configure --prefix=/usr/local/mysql
make
make install

/usr/local/mysql/bin/mysql_install_db

그런다음에 DB를 복구했죠...

여기까지는 사족이구요..

/usr/local/mysql/bin/mysqld_safe & 로 데몬을 실행하는데...
이녀석이 아무리 죽여도 안죽는군요..

kill PID 를 아무리 해도...ㅠ.ㅠ
아무래도 다른 방법이 있는것 같은데...

mysql_safe 의 첫부분 내용인데요...

#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
#
# scripts to start the MySQL daemon and restart it if it dies unexpectedly
#
# This should be executed in the MySQL base directory if you are using a
# binary installation that has other paths than you are using.
#
# mysql.server works by first doing a cd to the base directory and from there
# executing mysqld_safe

KILL_MYSQLD=1;

trap '' 1 2 3 15 # we shouldn't let anyone kill us
umask 007

defaults=
case "$1" in
--no-defaults|--defaults-file=*|--defaults-extra-file=*)
defaults="$1"; shift
;;
esac

-------------------------

아무래도 빨간색 부분이 뭔가 있는것 같은데... 통 모르겠네요....

hokim의 이미지

예 의심하신 trap 라인때문에 그런것입니다...
trap 라인에 의해 인터럽트 시그널들이 무시됩니다.
kill PID는 15번 인터럽트로 trap에 의해 무시되고 있군요..
kill -9 PID로 9번 시그널로 종료하시면 될것 같군요