summaryrefslogtreecommitdiff
path: root/community/collectd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-05 00:01:46 +0000
committerroot <root@rshg054.dnsready.net>2012-06-05 00:01:46 +0000
commit67db4cf68dbdb364c4dee1599294d7701f3c3b0a (patch)
treeab6491b591fe7f704b48188ecffe80771edf822e /community/collectd
parent1e6588d64f084decf287a58b7ff93ff0ce4d0446 (diff)
Tue Jun 5 00:01:46 UTC 2012
Diffstat (limited to 'community/collectd')
-rw-r--r--community/collectd/PKGBUILD9
-rw-r--r--community/collectd/service13
2 files changed, 19 insertions, 3 deletions
diff --git a/community/collectd/PKGBUILD b/community/collectd/PKGBUILD
index 88b750eca..23e14844b 100644
--- a/community/collectd/PKGBUILD
+++ b/community/collectd/PKGBUILD
@@ -1,13 +1,13 @@
-# $Id: PKGBUILD 71735 2012-06-02 10:28:04Z bluewind $
+# $Id: PKGBUILD 71904 2012-06-03 06:03:10Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Gerhard Brauer <gerhard.brauer@web.de>
pkgname=collectd
pkgver=5.1.0
-pkgrel=2
+pkgrel=3
pkgdesc='Daemon which collects system performance statistics periodically'
-arch=('i686' 'x86_64')
url='http://collectd.org/'
+arch=('i686' 'x86_64')
license=('GPL')
optdepends=('curl: apache, ascent, curl, nginx, and write_http plugins'
@@ -42,10 +42,12 @@ depends=('libltdl')
source=("${url}files/${pkgname}-${pkgver}.tar.gz"
'rtnl_dump_filter.patch'
'libperl.patch'
+ 'service'
'rc.d')
sha1sums=('55f17b17a10710641a9bf4e8c5332cef661cafcd'
'c92b8dacff0a71f2cc8645c2e350ff9bdc1cbd5f'
'245c098d121a4a05594553583310953b3a2f6461'
+ 'b56907f532b9174e1b6995aadb518228d7464d3b'
'0f441718d5519cb043b1130e5a1d0379078adbcc')
backup=('etc/collectd.conf')
@@ -75,5 +77,6 @@ package() {
make DESTDIR="${pkgdir}" install
install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/${pkgname}"
+ install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/collectd.service
install -Dm644 contrib/collectd2html.pl "${pkgdir}"/usr/share/collectd/collectd2html.pl
}
diff --git a/community/collectd/service b/community/collectd/service
new file mode 100644
index 000000000..9581ec0c9
--- /dev/null
+++ b/community/collectd/service
@@ -0,0 +1,13 @@
+[Unit]
+Description=System statistics collection daemon
+After=local-fs.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/collectdmon.pid
+ExecStart=/usr/sbin/collectdmon
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=multi-user.target