diff options
author | Jose V Beneyto <joberui@ei.upv.es> | 2007-12-10 21:29:47 +0100 |
---|---|---|
committer | Danny Rawlins <romster@shortcircuit.net.au> | 2007-12-16 21:01:17 +1100 |
commit | 7d80ea83a27b157800d374c2186dd5f8c35eed72 (patch) | |
tree | 1f9ee2d64e3a44f89b283c6a49db78dc42abcddc /monit | |
parent | 6e18441b02cc91a24e59ea854301f38e2e5faae8 (diff) | |
download | contrib-7d80ea83a27b157800d374c2186dd5f8c35eed72.tar.gz contrib-7d80ea83a27b157800d374c2186dd5f8c35eed72.tar.xz |
monit: New port.
Diffstat (limited to 'monit')
-rw-r--r-- | monit/.footprint | 11 | ||||
-rw-r--r-- | monit/.md5sum | 2 | ||||
-rw-r--r-- | monit/Pkgfile | 22 | ||||
-rw-r--r-- | monit/README | 13 | ||||
-rw-r--r-- | monit/monitd | 28 |
5 files changed, 76 insertions, 0 deletions
diff --git a/monit/.footprint b/monit/.footprint new file mode 100644 index 000000000..166cf2a31 --- /dev/null +++ b/monit/.footprint @@ -0,0 +1,11 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/monitd +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-r-xr-xr-x root/root usr/bin/monit +drwxr-xr-x root/root usr/etc/ +-rwx------ root/root usr/etc/monitrc +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-r--r--r-- root/root usr/man/man1/monit.1.gz diff --git a/monit/.md5sum b/monit/.md5sum new file mode 100644 index 000000000..217fc4ce1 --- /dev/null +++ b/monit/.md5sum @@ -0,0 +1,2 @@ +d3143b0bbd79b53f1b019d2fc1dae656 monit-4.10.1.tar.gz +e6af101cfa3a89b325dda13b9efa238a monitd diff --git a/monit/Pkgfile b/monit/Pkgfile new file mode 100644 index 000000000..4879aab89 --- /dev/null +++ b/monit/Pkgfile @@ -0,0 +1,22 @@ +# Description: Utility for monitoring daemons running on a Unix system +# URL: http://www.tildeslash.com/monit/ +# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net +# Packager: Jose V Beneyto, sepen at users dot sourceforge dot net +# Depends on: openssl + +name=monit +version=4.10.1 +release=1 +source=(http://www.tildeslash.com/${name}/dist/${name}-${version}.tar.gz \ + monitd) + +build() { + cd ${name}-${version} + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --sysconfdir=/usr/etc + make + make DESTDIR=${PKG} install + install -D -m 0755 ${SRC}/monitd ${PKG}/etc/rc.d/monitd + install -D -m 0700 ${SRC}/${name}-${version}/monitrc ${PKG}/usr/etc/monitrc +} diff --git a/monit/README b/monit/README new file mode 100644 index 000000000..1e292b099 --- /dev/null +++ b/monit/README @@ -0,0 +1,13 @@ +README for monit + +POST-INSTALL + + Edit monitrc control file as you need (/usr/etc/monitrc) + + Also, monit can run and be controlled from init. + If monit should crash, init will re-spawn a new monit process. + To setup monit to run from init, you can use the 'set init' statement + in monitrc and then edit your /etc/inittab as: + + # Run monit in standard run-levels + mo:2345:respawn:/usr/bin/monit -Ic /usr/etc/monitrc diff --git a/monit/monitd b/monit/monitd new file mode 100644 index 000000000..867fc813a --- /dev/null +++ b/monit/monitd @@ -0,0 +1,28 @@ +#!/bin/sh +# +# /etc/rc.d/monitd: start/stop monit daemon +# + +config_file=/etc/monitrc + +case $1 in + start) + /usr/bin/monit -c ${config_file} + ;; + stop) + killall -q /usr/bin/monit + ;; + reload) + /usr/bin/monit -c ${config_file} reload + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 [start|stop|reload|restart]" + ;; +esac + +# End of File |