Skip to main content

chkserv with one application and multiple processes

Comments

4 comments

  • cPanelMichael
    Hello, You should be able to use port-based monitoring. Here's an example you can test for port 2222:
    service[redis_2222]=2222,QUIT,220,systemctl restart redis_2222.service,redis-server,redis_user
    Thank you.
    0
  • gareth.star
    I can't believe it didn't occur to me to use port-based monitoring. Thanks, Michael! A similar question. What if sockets were used instead of ports? Would it be possible to handle that situation?
    0
  • cPanelMichael
    I can't believe it didn't occur to me to use port-based monitoring. Thanks, Michael! A similar question. What if sockets were used instead of ports? Would it be possible to handle that situation?

    It should work if the service names are different. Feel free to test that out and let us know the outcome. Thank you.
    0
  • gareth.star
    I'm not using anything socket based at the moment, but when I do, I'll come back with my results :)
    0

Please sign in to leave a comment.