0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Dockerはsystemctl stopが使えないぽよ

Posted at

はじめに

プロセス直接止めるんかなーと思ったらそうでした。メモです。

結論

psでプロセスIDを調べてkillする(プロセスIDは出力の2番目の列)。
ProxySQLプロセスを例とします。

# ps -ef | grep proxy
proxysql       123   111  0 00:00 ?        00:00:00 proxysql
proxysql       124   123  0 00:00 ?        00:00:03 proxysql
    root       125   126  0 00:00 pts/0    00:00:00 grep --color=auto proxy
# sudo kill 123
# ps -ef | grep proxy
proxysql       123   111  0 00:00 ?        00:00:00 proxysql
proxysql       124   123  0 00:00 ?        00:00:03 proxysql
    root       125   126  0 00:00 pts/0    00:00:00 grep --color=auto proxy
# sudo kill 124
# ps -ef | grep proxy
    root       125   126  0 00:00 pts/0    00:00:00 grep --color=auto proxy

おわりに

普段systemctlしか使わない勢なのでこゆとこ新鮮でよい。

簡単ですが以上です:relaxed:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?