monit: New port.
This commit is contained in:
parent
c1fc65b8f7
commit
902b8f0fdb
11
monit/.footprint
Normal file
11
monit/.footprint
Normal file
@ -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
|
2
monit/.md5sum
Normal file
2
monit/.md5sum
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
d3143b0bbd79b53f1b019d2fc1dae656 monit-4.10.1.tar.gz
|
||||||
|
e6af101cfa3a89b325dda13b9efa238a monitd
|
22
monit/Pkgfile
Normal file
22
monit/Pkgfile
Normal file
@ -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
|
||||||
|
}
|
13
monit/README
Normal file
13
monit/README
Normal file
@ -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
|
28
monit/monitd
Normal file
28
monit/monitd
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user