2019年2月24日日曜日

postfix(ゾンビプロセスについて)

サービスを確認した時に、以下の邪魔なメッセージが出ている。
どうもゾンビプロセスのような感じ。
ということで、対象のプロセスをまずは確認する。

[root@digihide named]# systemctl status dovecot
dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2019-02-24 09:44:10 JST; 1s ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
  Process: 3893 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
  Process: 3903 ExecStart=/usr/sbin/dovecot (code=exited, status=0/SUCCESS)
  Process: 3897 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 3905 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─3905 /usr/sbin/dovecot
           ├─3906 dovecot/anvil
           ├─3907 dovecot/log
           └─3909 dovecot/config

Feb 24 09:44:10 digihide.local systemd[1]: Stopped Dovecot IMAP/POP3 email server.
Feb 24 09:44:10 digihide.local systemd[1]: Starting Dovecot IMAP/POP3 email server...
Feb 24 09:44:10 digihide.local systemd[1]: PID file /var/run/dovecot/master.pid not readable (yet?) after start.
Feb 24 09:44:10 digihide.local dovecot[3905]: master: Dovecot v2.2.36 (1f10bfa63) starting up for imap, pop3 (core dumps disabled)
Feb 24 09:44:10 digihide.local systemd[1]: Started Dovecot IMAP/POP3 email server.

===================================

◻️謎の以下のプロセスを消すことにする。
[root@digihide named]# ps `cat /var/run/dovecot/master.pid`
  PID TTY      STAT   TIME COMMAND
 3905 ?        Ss     0:00 /usr/sbin/dovecot


◻️対象のプロセスを消す。
[root@digihide named]# kill -9 3905

◻️プロセスの中身を確認する。
[root@digihide named]# ps `cat /var/run/dovecot/master.pid`


◻️消えていることを確認する。
cat: /var/run/dovecot/master.pid: No such file or directory
  PID TTY          TIME CMD
 3429 pts/0    00:00:00 bash
 3920 pts/0    00:00:00 ps


◻️念の為、dovecotのサービスを確認する。先ほどの内容が消えていることが分かる。
[root@digihide named]# systemctl restart dovecot
[root@digihide named]# systemctl status dovecot
dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2019-02-24 09:46:27 JST; 3s ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
  Process: 3915 ExecStop=/usr/bin/doveadm stop (code=exited, status=75)
  Process: 3933 ExecStart=/usr/sbin/dovecot (code=exited, status=0/SUCCESS)
  Process: 3927 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 3935 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─3935 /usr/sbin/dovecot
           ├─3936 dovecot/anvil
           ├─3937 dovecot/log
           └─3939 dovecot/config

Feb 24 09:46:27 digihide.local systemd[1]: Starting Dovecot IMAP/POP3 email server...
Feb 24 09:46:27 digihide.local systemd[1]: PID file /var/run/dovecot/master.pid not readable (yet?) after start.
Feb 24 09:46:27 digihide.local dovecot[3935]: master: Dovecot v2.2.36 (1f10bfa63) starting up for imap, pop3 (core dumps disabled)

Feb 24 09:46:27 digihide.local systemd[1]: Started Dovecot IMAP/POP3 email server.

0 件のコメント:

コメントを投稿

memo2

  ## ProxyPassにALBのパスルーティング先を記載 ## RUN echo 'LoadModule proxy_module modules/mod_proxy.so' >> /etc/apache2/apache2.conf ...