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
|
||||
e6af101cfa3a89b325dda13b9efa238a monitd
|
||||
afd3beb99cd421ada8e90c5affc9b106 monit-5.0-beta1.tar.gz
|
||||
df9b36446f5ee63f67c1f9bdfebbbbc7 monitd
|
||||
|
@ -5,18 +5,18 @@
|
||||
# Depends on: openssl
|
||||
|
||||
name=monit
|
||||
version=4.10.1
|
||||
version=5.0-beta1
|
||||
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)
|
||||
|
||||
build() {
|
||||
cd ${name}-${version}
|
||||
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
|
||||
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
|
||||
}
|
||||
|
@ -3,17 +3,17 @@
|
||||
# /etc/rc.d/monitd: start/stop monit daemon
|
||||
#
|
||||
|
||||
config_file=/etc/monitrc
|
||||
CONFIG=/usr/etc/monitrc
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
/usr/bin/monit -c ${config_file}
|
||||
/usr/bin/monit -c $CONFIG
|
||||
;;
|
||||
stop)
|
||||
killall -q /usr/bin/monit
|
||||
/usr/bin/killall -q /usr/bin/monit
|
||||
;;
|
||||
reload)
|
||||
/usr/bin/monit -c ${config_file} reload
|
||||
/usr/bin/monit -c $CONFIG reload
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
|
Loading…
Reference in New Issue
Block a user