Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=9d98c10b268608a522e1e9425f3a34d588df3330

commit 9d98c10b268608a522e1e9425f3a34d588df3330
Author: James Buren <[email protected]>
Date:   Thu Jul 5 02:59:31 2012 -0500

mdadm-3.2.5-2-x86_64
* convert to systemd schema

diff --git a/source/base/mdadm/FrugalBuild b/source/base/mdadm/FrugalBuild
index b7dad37..59eb17b 100644
--- a/source/base/mdadm/FrugalBuild
+++ b/source/base/mdadm/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=mdadm
pkgver=3.2.5
-pkgrel=1
+pkgrel=2
pkgdesc="A tool for managing software RAID under Linux"
url="http://www.kernel.org/pub/linux/utils/raid/mdadm/";
depends=('glibc>=2.8-3')
@@ -15,18 +15,22 @@ backup=(etc/{mdadm.conf,sysconfig/mdadm})
_F_archive_grepv="\(rc\|devel\)"
up2date="Flasttar $url"
source=($url/$pkgname-$pkgver.tar.bz2 \
-       mdadm rc.mdadm rc.mdadm-{de,hu}.po)
+       mdadm.service rc.mdadm rc.mdadm-{de,hu}.po)
sha1sums=('c8bab20578d5188f65da6acacd7fdeb4b489dfb9' \
-          '66c02e7212047d89c99991ec13173a8ebb246aec' \
+          '458027bd4f641df3e4d39459e6eabd663a39811b' \
'd8ea38aa71933a28d09c68f03fefbc7f7445fa6d' \
'e301d725ccf18702882fc8b2dfce6118564f35d8' \
'd34066bab987534ba167b229b3769591d8e2260e')
+_F_sysvinit_units=(mdadm)
+_F_systemd_units=(mdadm=)
+Finclude systemd

build()
{
Fbuild
-       Ffile /etc/sysconfig/mdadm
Frcd2
+       Ffile /lib/systemd/system/mdadm.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/base/mdadm/mdadm b/source/base/mdadm/mdadm
deleted file mode 100644
index 63fe046..0000000
--- a/source/base/mdadm/mdadm
+++ /dev/null
@@ -1,17 +0,0 @@
-#
-# /etc/sysconfig/mdadm
-#
-# confiugation file for the mdadm software raid monitoring daemon
-#
-
-# devices to monitor
-devices=('/dev/md0')
-
-# give a delay in seconds. mdadm polls the md arrays and then waits this many
-# seconds before polling again
-delay='1800'
-
-# give a mail address to send alerts to
-mail='root@localhost'
-
-# vim: ft=sh
diff --git a/source/base/mdadm/mdadm.service b/source/base/mdadm/mdadm.service
new file mode 100644
index 0000000..d0ecb1e
--- /dev/null
+++ b/source/base/mdadm/mdadm.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Software RAID Monitoring
+After=syslog.target
+ConditionPathExists=/etc/mdadm.conf
+
+[Service]
+PIDFile=/var/run/mdadm.pid
+ExecStart=/sbin/mdadm --monitor --scan --daemonise 
--pid-file=/var/run/mdadm.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to