monit: Cleanup and updated 4.10.1 -> 5.0-beta1
This commit is contained in:
parent
020e0399b9
commit
18bd532b3a
@ -1,2 +1,2 @@
|
|||||||
d3143b0bbd79b53f1b019d2fc1dae656 monit-4.10.1.tar.gz
|
afd3beb99cd421ada8e90c5affc9b106 monit-5.0-beta1.tar.gz
|
||||||
e6af101cfa3a89b325dda13b9efa238a monitd
|
df9b36446f5ee63f67c1f9bdfebbbbc7 monitd
|
||||||
|
@ -5,18 +5,18 @@
|
|||||||
# Depends on: openssl
|
# Depends on: openssl
|
||||||
|
|
||||||
name=monit
|
name=monit
|
||||||
version=4.10.1
|
version=5.0-beta1
|
||||||
release=1
|
release=1
|
||||||
source=(http://www.tildeslash.com/${name}/dist/${name}-${version}.tar.gz \
|
source=(http://www.tildeslash.com/$name/dist/beta/$name-$version.tar.gz \
|
||||||
monitd)
|
monitd)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${name}-${version}
|
cd $name-$version
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--sysconfdir=/usr/etc
|
--sysconfdir=/usr/etc
|
||||||
make
|
make
|
||||||
make DESTDIR=${PKG} install
|
make DESTDIR=$PKG install
|
||||||
install -D -m 0755 ${SRC}/monitd ${PKG}/etc/rc.d/monitd
|
install -D -m 0755 $SRC/monitd $PKG/etc/rc.d/monitd
|
||||||
install -D -m 0700 ${SRC}/${name}-${version}/monitrc ${PKG}/usr/etc/monitrc
|
install -D -m 0700 $SRC/$name-$version/monitrc $PKG/usr/etc/monitrc
|
||||||
}
|
}
|
||||||
|
16
monit/monitd
16
monit/monitd
@ -3,26 +3,26 @@
|
|||||||
# /etc/rc.d/monitd: start/stop monit daemon
|
# /etc/rc.d/monitd: start/stop monit daemon
|
||||||
#
|
#
|
||||||
|
|
||||||
config_file=/etc/monitrc
|
CONFIG=/usr/etc/monitrc
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
/usr/bin/monit -c ${config_file}
|
/usr/bin/monit -c $CONFIG
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
killall -q /usr/bin/monit
|
/usr/bin/killall -q /usr/bin/monit
|
||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
/usr/bin/monit -c ${config_file} reload
|
/usr/bin/monit -c $CONFIG reload
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "usage: $0 [start|stop|reload|restart]"
|
echo "usage: $0 [start|stop|reload|restart]"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# End of File
|
# End of File
|
||||||
|
Loading…
Reference in New Issue
Block a user