hackhowtofaq / monitTrial

How to run monit locally for a standalone process

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MonitTrial

A small how to on monit

  • Monit doesn't permit variables in the monitrc
  • monitrc uses some $PWD style variables
    • Makefile uses sed to replace the variables. Notice the escaping for Makefile and for ''
  • myCustomDaemon runs for 40seconds and dies.
    • monit restores it.
  • monit-wrapper.sh
    • Makes daemon out of any standalone application
    • Maintains a pidfile for monit to monitor
    • Usage: monit-wrapper.sh [start|stop]
  • Usage:

About

How to run monit locally for a standalone process


Languages

Language:Shell 81.4%Language:Makefile 18.6%