---
name: monitord
version: 0.4.1_3
origin: sysutils/monitord
comment: Service that restarts other standalone services
arch: freebsd:9:x86:64
www: UNKNOWN
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 17455
desc: |
  This port allows one to monitor other standalone services and
  automatically restart them if they are accidentally and unwittingly
  terminated, or crash either because of instability or a DoS attack.
  It simplifies a task capable of being performed by cron(8) by not
  requiring custom scripts to be written for each service being
  monitored. The configuration file is simple and easily setup.

  Note: version 0.4.1 has a different configuration file format and
  any previous configuration file should be updated accordingly.
categories: [sysutils]
files:
  /usr/local/etc/monitord.conf.sample: 54edd1aa4f5879929f56632e1a931ff4ce22e228de14743add03b392f6979136
  /usr/local/etc/rc.d/monitord: cafdf28b001feb9b9d8c550b755a9ef8260d8d39dd70d741c34b33516ee7a2ee
  /usr/local/man/man8/monitord.8.gz: afb7b090e716a7bba5fc09e746e8215d417a2b1c5c2a55151beed7c7e7ba0f88
  /usr/local/sbin/monitord: 797b25d7e5ec5187e54b95934b550f18f2e83228dbc666bf058aa4325e8a67ad
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/monitord.conf /usr/local/etc/monitord.conf.sample; then rm -f /usr/local/etc/monitord.conf; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |
  =============================================================
  Monitord requires procfs(5). Add this line to your fstab(5):
  proc /proc procfs rw 0 0
  =============================================================
