# killall -9 mysqld in init script ?

**URL:** https://forums.percona.com/t/killall-9-mysqld-in-init-script/1658
**Category:** Other MySQL® Questions
**Created:** [August 23, 2011, 9:03am UTC](https://forums.percona.com/t/killall-9-mysqld-in-init-script/1658 "2011-08-23T09:03:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![babine](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/babine/32/4_2.png) [@babine](https://forums.percona.com/u/babine)
#### Post date: [August 23, 2011, 9:03am UTC](https://forums.percona.com/t/killall-9-mysqld-in-init-script/1658/1 "2011-08-23T09:03:10Z")

</div>

Hi,

I’m using percona-server-server-5.5 on Debian.

In the init script, if all else fails on a stop, it issues a “killall -9 mysqld” ; isn’t it a bit drastic ?

I know it’s issued only if nothing else worked (shutdown, SIGTERM) but still, wouldn’t it be better if it let the user handle the problem (and issue a kill -9 or whatever is needed) instead of doing it automatically as it may have severe consequences on the data ?

Thanks,

Thomas

---

<div class="post-metadata">

### Author: ![xaprb](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xaprb](https://forums.percona.com/u/xaprb)
#### Post date: [September 1, 2011, 10:05am UTC](https://forums.percona.com/t/killall-9-mysqld-in-init-script/1658/2 "2011-09-01T10:05:37Z")

</div>

The init script we ship is the same as the MySQL Enterprise one. In general I have never seen an init script I was happy with. But no one has paid for developing a better one, and it is not a trivial task to do right in my opinion. So it is still on the wishlist.
