system/monit: Update script + New Maintainer.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Bryan Harris 2016-08-06 06:29:43 +07:00 committed by Willy Sudiarto Raharjo
parent 3aba221371
commit 50ee162f27
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
4 changed files with 12 additions and 22 deletions

View File

@ -23,5 +23,5 @@ preserve_perms() {
}
preserve_perms etc/rc.d/rc.monit.new
config etc/monit.conf.new
config etc/monitrc.new

View File

@ -24,12 +24,12 @@
PRGNAM=monit
VERSION=${VERSION:-5.18}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -92,7 +92,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
cp monitrc $PKG/etc/monit.conf.new
cp monitrc $PKG/etc/monitrc.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING CONTRIBUTORS README $PKG/usr/doc/$PRGNAM-$VERSION

View File

@ -6,5 +6,5 @@ MD5SUM="a1bfac0fbb83439435f8616200d2364d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Ricardson Williams"
EMAIL="ricardsonwilliams@yahoo.com.br"
MAINTAINER="Bryan Harris"
EMAIL="bryanlharris@gmail.com"

View File

@ -7,8 +7,7 @@
#
### Default variables
CONFIG="/etc/monit.conf"
PIDFILE="/var/run/monit.pid"
CONFIG="/etc/monitrc"
[ -x /usr/bin/monit ] || exit 1
[ -r "$CONFIG" ] || exit 1
@ -19,17 +18,13 @@ desc="Process Monitor"
start() {
echo "Starting $desc ($prog): /etc/rc.d/rc.$prog start"
$prog -c $CONFIG -p $PIDFILE
$prog -c $CONFIG
return $?
}
stop() {
echo "Shutting down $desc ($prog)..."
if [ -f $PIDFILE ]; then
kill -TERM $(cat $PIDFILE)
else
killall -TERM $prog
fi
monit quit
return $?
}
@ -45,12 +40,7 @@ reload() {
}
status() {
PIDS=$(pidof $prog)
if [ "$PIDS" == "" ]; then
echo "$prog is not running!"
else
echo "$prog is running at pid(s) ${PIDS}."
fi
monit status
return $?
}