From 67db4cf68dbdb364c4dee1599294d7701f3c3b0a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Jun 2012 00:01:46 +0000 Subject: Tue Jun 5 00:01:46 UTC 2012 --- community/collectd/PKGBUILD | 9 ++++++--- community/collectd/service | 13 +++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 community/collectd/service (limited to 'community/collectd') 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 # Contributor: Gerhard Brauer 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 -- cgit v1.2.3-54-g00ecf