From 7e7561a9640d0e1f54288a391239feb6bd691b56 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 May 2013 06:21:03 -0700 Subject: Fri May 31 06:21:01 PDT 2013 --- community/monit/PKGBUILD | 10 ++++------ community/monit/monitd | 43 ------------------------------------------- 2 files changed, 4 insertions(+), 49 deletions(-) delete mode 100644 community/monit/monitd (limited to 'community/monit') diff --git a/community/monit/PKGBUILD b/community/monit/PKGBUILD index 44e524112..48ff45d64 100644 --- a/community/monit/PKGBUILD +++ b/community/monit/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 79004 2012-10-28 18:41:19Z jlichtblau $ +# $Id: PKGBUILD 92063 2013-05-31 02:32:07Z seblu $ # Maintainer: Jaroslav Lichtblau # Contributor: Geoffroy Carrier # Contributor: Marco Bartholomew pkgname=monit pkgver=5.5 -pkgrel=2 +pkgrel=3 pkgdesc="Utility for managing and monitoring, processes, files, directories and devices on a *NIX system" arch=('i686' 'x86_64') url="http://mmonit.com/monit/" @@ -14,9 +14,8 @@ depends=('openssl') backup=('etc/monitrc') changelog=$pkgname.changelog source=(http://mmonit.com/$pkgname/dist/$pkgname-$pkgver.tar.gz \ - monitd monit.service) + monit.service) sha256sums=('8276b060b3f0e6453c9748d421dec044ddae09d3e4c4666e13472aab294d7c53' - 'b235b2fdeec49015d6b74f028d161b289663692f9ee2d2d78cf52d8db87ca496' 'cf607209e9e5d39e708152dc181525570371fab750f828e890e2b6a00b81ebc4') build() { @@ -32,8 +31,7 @@ package() { make DESTDIR=${pkgdir} install - install -D -m755 ${srcdir}/monitd ${pkgdir}/etc/rc.d/monitd install -D -m700 monitrc ${pkgdir}/etc/monitrc - + install -D -m644 ${srcdir}/$pkgname.service ${pkgdir}/usr/lib/systemd/system/$pkgname.service } diff --git a/community/monit/monitd b/community/monit/monitd deleted file mode 100644 index 61a359702..000000000 --- a/community/monit/monitd +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -start() { - stat_busy "Starting Monit" - /usr/bin/monit &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon monitd - stat_done - fi -} - -stop() { - stat_busy "Stopping Monit" - /usr/bin/monit quit &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon monitd - stat_done - fi -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -- cgit v1.2.3-54-g00ecf