[Frugalware-git] frugalware-current: monit-5.2.5-2-i686

CSÉCSY László boobaa at frugalware.org
Wed Aug 3 12:24:43 CEST 2011


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=bad741cdb27a22bf53f04f77291e01239ffd5a76

commit bad741cdb27a22bf53f04f77291e01239ffd5a76
Author: CSÉCSY László <boobaa at frugalware.org>
Date:   Wed Aug 3 12:24:20 2011 +0200

monit-5.2.5-2-i686

systemd support

diff --git a/source/apps-extra/monit/FrugalBuild b/source/apps-extra/monit/FrugalBuild
index ef5b894..d241752 100644
--- a/source/apps-extra/monit/FrugalBuild
+++ b/source/apps-extra/monit/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=monit
pkgver=5.2.5
-pkgrel=1
+pkgrel=2
pkgdesc="monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system"
url="http://www.tildeslash.com/monit"
depends=('glibc' 'openssl>=1.0.0')
@@ -13,10 +13,11 @@ archs=('i686' 'x86_64')
up2date="lynx -dump 'http://www.tildeslash.com/monit/dist/?C=M;O=A' | Flasttar"
source=(http://www.tildeslash.com/monit/dist/$pkgname-$pkgver.tar.gz \
monit-4.10.1-change-conf-file-path.patch \
-	README.Frugalware)
+	README.Frugalware monit.service)
sha1sums=('41954b62a08663527d497084bd16d08b9a7b21bc' \
'b0e0461b3cf128a036d35021c8a4aaa24254a60e' \
-          '933901884a93535baf97c1a629dca9acec2fc82f')
+          '983e699c6b418342e0366967cfdf36a47ddc7514' \
+          '71442198a899311de383402ab782227391901703')
Fconfopts="$Fconfopts --bindir=/usr/sbin"

build() {
@@ -24,6 +25,7 @@ build() {
Fsed /etc /etc/monit monit.1
Fbuild
Fdoc README.Frugalware
+	Ffile /lib/systemd/system/monit.service
}

# optimization OK
diff --git a/source/apps-extra/monit/README.Frugalware b/source/apps-extra/monit/README.Frugalware
index 997b5c5..2089c45 100644
--- a/source/apps-extra/monit/README.Frugalware
+++ b/source/apps-extra/monit/README.Frugalware
@@ -1,6 +1,7 @@
-You can set up Monit by adding these lines to '/etc/inittab':
+You may want to forge a config file for yourself as '/etc/monit/monitrc' to be
+able to properly use Monit. Consult the online docs for details:

-------------------------------------------------------
-# Run monit in standard run-levels
-mo:2345:respawn:/usr/sbin/monit -Ic /etc/monit/monitrc
-------------------------------------------------------
+http://mmonit.com/monit/documentation/monit.html
+
+After doing so you should issue a `systemctl enable monit.service` command to
+make use of this service.
diff --git a/source/apps-extra/monit/monit.service b/source/apps-extra/monit/monit.service
new file mode 100644
index 0000000..1c1038f
--- /dev/null
+++ b/source/apps-extra/monit/monit.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/monit -Ic /etc/monit/monitrc
+
+[Install]
+WantedBy=multi-user.target


More information about the Frugalware-git mailing list