Skip to main content

chkservd and supervisord

Comments

3 comments

  • cPanelMichael
    Hello Jason, Can you confirm which Operating System and cPanel & WHM versions are installed on the system so we can attempt to reproduce the issue? Thank you.
    0
  • ExtremeGuy
    Hello Jason, Can you confirm which Operating System and cPanel & WHM versions are installed on the system so we can attempt to reproduce the issue? Thank you.

    The server is a VPS running CENTOS 6.10 with WHM v76.0.14. supervisor is currently running version 2.1
    0
  • cPanelMichael
    Hello @ExtremeGuy, I tested this using the steps documented on the link below for process-based monitoring: TailWatch - cPanel Knowledge Base - cPanel Documentation # grep supervisord /etc/chkserv.d/chkservd.conf supervisord:1 # cat /etc/chkserv.d/supervisord service[supervisord]=x,x,x,service supervisord restart,supervisord,root
    Once Chkservd was setup, I killed the supervisord process with the following command: # killall -9 supervisord # ps aux|grep supervisord root 9229 0.0 0.0 112708 980 pts/1 S+ 12:33 0:00 grep --color=auto supervisord
    Upon the next Chkservd service check, /var/log/chkservd.log showed supervisord was detected as down and successfully restarted: supervisord [[check command:-][socket connect:N/A][fail count:1]Restarting supervisord.... system: service supervisord restart [notify:failed service:supervisord]]..
    # ps aux|grep supervisord root 9282 0.0 0.6 219408 11880 ? Ss 12:35 0:00 /usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf root 9366 0.0 0.0 112708 980 pts/1 S+ 12:36 0:00 grep --color=auto supervisord
    Can you let me know if the issue persists on your system using these same steps and file contents? Thank you.
    0

Please sign in to leave a comment.